home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / terms / kermit / a / mskerm.bwr < prev    next >
Encoding:
Text File  |  1993-08-24  |  99.7 KB  |  2,127 lines

  1. File MSKERM.BWR           MS-DOS KERMIT 3.13 "BEWARE FILE"              Aug 1993
  2.  
  3.                BUGS, LIMITATIONS, HINTS & TIPS
  4.  
  5. Last update: Tue Aug 24 10:38:32 1993
  6.  
  7. This file discusses common problems installing or using MS-DOS Kermit and
  8. presents solutions or workarounds in many cases.  It applies to version 3.13
  9. of MS-DOS Kermit for the IBM PC family and compatibles.  See KERMIT.HLP
  10. (MSKERM.HLP) for copyright information, terms and conditions, and a summary of
  11. MS-DOS Kermit commands.
  12.  
  13. The user manual for MS-DOS Kermit 3.13 is the book "Using MS-DOS Kermit",
  14. Second Edition, by Christine M. Gianone, published by Digital Press, Bedford,
  15. MA (1992), order number EY-H893E-DP.  Call 1-800-344-4825 (toll free, USA) to
  16. order, or order from Columbia University.  Changes since the book was
  17. published are described in KERMIT.UPD (MSKERM.UPD).
  18.  
  19. Please consult "Using MS-DOS Kermit" and this file before contacting Kermit
  20. technical support staff.  Report problems via e-mail to kermit@columbia.edu on
  21. the Internet or to KERMIT@CUVMA.BITNET, or call +1 212 854-5126, or by Fax to
  22. +1 212 663-8202, or write to Kermit Distribution, Columbia University Academic
  23. Information Systems, 612 West 115th Street, New York, NY 10025, USA.
  24.  
  25. PATCHES
  26.  
  27. The following patches correct problems noted since Version 3.13 was released:
  28.  
  29. 1. OPTIONAL: Specify 132-column video mode for Orchid Designer Professional.
  30. 2. Make SHOW PROTOCOL display handshake correctly, fix \KdgC3 and \KdgC4 verbs.
  31. 3. Correct insert/delete character when at right margin.
  32. 4. Correct CONNECT-mode status line to stay off if SET to OFF.
  33. 5. Correct invocation of DEC-MCS character set.
  34. 6. Correct selective-erase-in-line.
  35. 7. Correct two graphics mode errors.
  36. 8. Make ENQ response immediate on network connections.
  37. 9. OPTIONAL: Permit trying 132-column text display in Windows.
  38.    Remove semicolon in left margin after Patch 9 comment to enable this patch.
  39.    If Windows blows up with this patch enabled, put the semicolon back.  In
  40.    many observed cases, Windows becomes deeply disturbed when the application
  41.    attempts to change video modes, but in others it works OK.
  42.  
  43. Other problems corrected since original 3.13 release:
  44.  
  45. 1. Patch-file-finding test in MSKERMIT.INI was wrong.
  46. 2. KERMIT.PIF file internally referred to MSTIBM.EXE rather than KERMIT.EXE.
  47. 3. USR Sportster dialing script (SPORT.SCR) contained a syntax error
  48.    ("W1" should be removed from the initialization string).
  49.  
  50. INCOMPATIBILITIES BETWEEN MS-DOS KERMIT 3.13 AND EARLIER VERSIONS:
  51.  
  52.  1. The TERMINALR/S macro capability is replaced by host-initiated change
  53.     of screen writing direction (details in KERMIT.UPD).  As a consequence
  54.     of this, host-based WordPerfect won't be able to load your key settings
  55.     (see next section).  Any other host software that sent the TERMINALR/S
  56.     sequences will also need to be converted in similar fashion.  See the
  57.     APC section in KERMIT.UPD (MSKERM.UPD) for further details.
  58.  
  59.  2. STATUS command removed.  There is no longer any way to display all of
  60.     MS-DOS Kermit's settings on a single screen.  Now use the SHOW command to
  61.     display categories of settings: SHOW TERMINAL, SHOW COMMUNICATIONS, SHOW
  62.     PROTOCOL, etc.
  63.  
  64.  3. STATISTICS, which displays file transfer statistics, has been added as a
  65.     top-level command, for compatibility with C-Kermit.     So if you were used
  66.     to typing "stat" to get a screenful of settings values, now you will get
  67.     file transfer statistics instead.
  68.  
  69.  4. Alt-n was previously bound by default to the \Knethold verb.  It is now
  70.     bound to the new \Knextsession verb.  \Knethold (used on TES, EBIOS, 
  71.     NASI/NACS, and various other PC networks or asynchronous communication
  72.     servers) has been moved to Alt-z.
  73.  
  74. WORDPERFECT
  75.  
  76. To make host-based UNIX WordPerfect work with MS-DOS Kermit 3.13, follow these
  77. directions (courtesy of Chris Thompson at Vanderbilt University).  Presumably
  78. similar steps can be followed for the VMS version:
  79.  
  80. . Go into the directory where the terminal definitions are stored (in my case
  81.   of WP 5.1 for AIX, it was /usr/wp51/shlib), and execute "wpterm" (it usually
  82.   requires you to be super-user).
  83.  
  84. . A screen containing all the terminal definitions will appear.  Highlight the
  85.   current Kermit terminal definition and hit Create.
  86.  
  87. . It will ask "Model new definition after Kermit?"  Answer yes.
  88.  
  89. . It will then ask for a new name for your new terminal definition.  Call it
  90.   something like KERMIT313.
  91.    
  92. . At the bottom of the screen, several options will appear.  Choose the option
  93.   for Terminal Control Characters.  It will then bring up a screen with the
  94.   different initialization strings and their values.  The first four items are
  95.   the ones that need altering (Terminal Initialization, Terminal Reset, Quick
  96.   Initialization, and Quick Reset).  Just delete "[27][?34h" or "[27][?34l"
  97.   (for initialization and reset, respectively) from the string and replace it
  98.   with "[27]_take \kermit\wpunix.ini[27]\" or "[27]_set key clear[27]\",
  99.   leaving the rest of the string intact.
  100.    
  101. . Be sure to change your WPTERM environment variable if you decided to create
  102.   a definition with a different name.
  103.  
  104. TROUBLESHOOTING MS-DOS KERMIT SERIAL PORT AND MODEM PROBLEMS
  105.  
  106.   "Why can't MS-DOS Kermit find my COM3 or COM4 port?"
  107.   "Why can Kermit send characters to my COM port, but not read them?"
  108.   "Why doesn't Kermit work with my internal modem?"
  109.  
  110. Rule out the obvious: Is everything connected and turned on?  Did you
  111. give a SET PORT command for the right device, and did you give it BEFORE any
  112. other device-related commands, such as SET SPEED and SET PARITY?  Remember,
  113. port-related settings apply to the port that was selected in the most recent
  114. SET PORT command, so a proper sequence might be:
  115.  
  116.   SET PORT COM2          ; First select the port
  117.   SET SPEED 19200     ; Then set its speed
  118.   SET PARITY EVEN     ; and other parameters for this port...
  119.   SET FLOW RTS/CTS
  120.   SET LOCAL-ECHO ON
  121.  
  122. Each of these parameters is remembered for each port, so switching ports (e.g.
  123. SET PORT COM1 after you have given the above sequence of commands) changes
  124. all these parameters to their previous (or default) values for the port you
  125. have switched to.  To see communication parameters for the current port:
  126.  
  127.   SHOW COMMUNICATIONS
  128.  
  129. Check them carefully to be sure they are what you intended.
  130.  
  131.   The following discussion is detailed and technical, but most of it boils
  132.   down to (a) telling Kermit two numbers, the port address and IRQ value; and
  133.   (b) fiddling with your modem.     Keep that in mind as you read more about PC
  134.   hardware than you ever wanted to know.
  135.  
  136. HOW A PHYSICAL COMMUNICATION PORT IS ASSOCIATED WITH A DOS COMn DEVICE
  137.  
  138. DOS PCs come with full support for two communication ports, COM1 and COM2, and
  139. with provisions for two more, COM3 and COM4.  COM3 and COM4 are not well (or
  140. consistently) supported in most types of PCs, as are COM1 and COM2 which
  141. rarely (by themselves) cause any problems.  This discussion considers only
  142. COM1-COM4, since higher-numbered COM ports are rare, and in any case not
  143. supported by MS-DOS Kermit.
  144.  
  145. The digit in the port name (like the "2" in COM2) is an index into an area in
  146. memory that contains the address of the serial port hardware.  The PC's Basic
  147. Input/Ouput System (BIOS) has four words starting at segment 40 (hexadecimal),
  148. word 0, for the addresses of the first four COM ports.  Word 0 is for COM1,
  149. word 2 (two bytes per word) for COM2, word 4 COM3, and word 6 COM4.  To view
  150. these addresses:
  151.  
  152.   C:\> debug         (start the debug program)
  153.   -d 40:0         (display segment 40)
  154.   -q             (quit the debug program)
  155.  
  156. ("C:\>" is the DOS prompt, "-" is the debug prompt.)  Here are the results
  157. on a PS/2 with 3 COM ports:
  158.  
  159.   0040:0000  F8 03 F8 02 20 32 00 00-BC 03 00 00 00 00 60 03  .... 2........`.
  160.              ^^^^^ ^^^^^ ^^^^^ ^^^^^
  161.              COM1  COM2  COM3  COM4
  162.  
  163. The first line (like the one above) contains the COM port information (ignore
  164. the other lines, as well as the characters on the right).  "F8 03" is the
  165. 2-byte COM1 address, expressed in hexadecimal (base 16) with the low byte
  166. first.  Thus the actual COM1 address is 03F8 hex, expressed in Kermit commands
  167. as \x3f8.  The COM2 address is 02F8, the COM3 address is 3220, and (since
  168. there is no COM4) the COM4 address is 0000.  That is how both DOS and the BIOS
  169. understand which ports are defined and where to find them.
  170.  
  171. When your PC is powered up, the BIOS startup code checks for serial port
  172. hardware (that is, a Universal Asynchronous Receiver/Transmitter, or UART) at
  173. the two port addresses 03F8 and 02F8.  If it finds a UART at the first address
  174. then that address is placed in word 40:0 and declared to be COM1.  Then the
  175. BIOS tries the second address and if successful this address goes into the
  176. first available word at that time, typically 40:2 as the address of COM2.
  177. Thus if you remove a COM1 device then a previously COM2 device will appear in
  178. the COM1 BIOS storage area as COM1 to DOS and Kermit.  What happens to the
  179. other two words depends on the PC model and BIOS.  The IBM PS/2 BIOS fills in
  180. all four words on startup, but most others handle only the first two because
  181. that's how IBM did it with the original PCs.
  182.  
  183.   So... just setting switches or jumpers on a serial port board or internal
  184.   modem does NOT necessarily define the board to be a particular COM port.
  185.  
  186. So why do some communication programs work with COM3 and COM4 without any
  187. special fiddling?  These programs ASSUME certain COM3 and COM4 addresses, even
  188. when there are no entries in the BIOS communication-port area.  Some of these
  189. programs show you their assumptions in a menu (and might allow you to change
  190. them), others do not.  The assumed values are usually as follows:
  191.  
  192.   Port     Assumed Address (hexadecimal)
  193.   COM1          03F8
  194.   COM2          02F8
  195.   COM3          03E8
  196.   COM4          02E8
  197.  
  198.   NOTE: PS/2s use different addresses for COM3 and COM4 -- 3220 and 3228,
  199.   respectively.  Well-behaved communication software (like Kermit) will use
  200.   these addresses rather than the defaults listed above.  Ill-behaved software
  201.   ignores the segment-40 addresses and erroneously attempt to use its own
  202.   values, right or wrong.
  203.  
  204. Unchecked use of an assumed port address is DANGEROUS if the device is not
  205. really where the software expects, especially if some other kind of device,
  206. say a network adapter, is at the given address.  It can also produce unwanted
  207. conflicts under Windows, OS/2, and DesqView, whose drivers often set the
  208. port's segment-40 word to 0 when they want to use the port exclusively and
  209. without interference, and then restore the real address when done, and similar
  210. unwanted interference with Int 14H redirectors that allow serial-port
  211. communication software to be used on network connections.
  212.  
  213. Unlike most other PC communication software, Kermit does NOT attempt to use a
  214. communications port unless:
  215.  
  216.   (a) It finds its address in the BIOS comm-port area, segment 40, or:
  217.   (b) You specify the address yourself.
  218.  
  219. AND:
  220.  
  221.   The device at the given address passes certain tests, in which registers
  222.   must contain certain values that are legitimate for a UART.
  223.  
  224. In other words, KERMIT IS MORE CAREFUL than most other communication software,
  225. because does not want to risk disrupting normal operation of your PC.
  226.  
  227. SPECIFYING THE PORT ADDRESS
  228.  
  229. If you tell MS-DOS Kermit to SET PORT COMn (where n is 1, 2, 3, or 4), and
  230. Kermit responds:
  231.  
  232.   Warning, no hardware for this serial port.
  233.   This port will be operated through the BIOS as BIOSn
  234.  
  235. it means that Kermit did not find an address for the port in the BIOS area or
  236. it did find one but the hardware at that address did not look like a UART.  If
  237. the cause of the message is a missing address, you can tell MS-DOS Kermit the
  238. address of the port by issuing the following command:
  239.  
  240.   SET COMn \xhhhh
  241.  
  242. where n is 1, 2, 3, or 4, and hhhh are four hexadecimal digits (0-9, A-F)
  243. representing the 16-bit address.  This command not only informs Kermit of the
  244. address, but also inserts the address into the BIOS so other programs can find
  245. the port (if they follow the rules), and so you don't have to give this
  246. command to Kermit again until after the next time you reboot.
  247.  
  248. After giving the SET COMn command, give a SET PORT COMn command for the same
  249. port, e.g.:
  250.  
  251.   set com3 \x3f8   ; FIRST specify the address of COM3 
  252.   set port com3       ; THEN select COM3
  253.  
  254. How do you know what addresses to give?     If have purchased an internal modem
  255. or an add-on serial port, the installation instructions should tell you.  The
  256. device must be configured -- generally by setting little switches or
  257. installing or removing jumpers.     You have to make sure that the address that
  258. you have chosen agrees with the address that Kermit will use.
  259.  
  260. Although it is not recommended that you guess at address values, sometimes it
  261. is the only way (as often with inherited equipment), for which occasions here
  262. is a list of the addresses commonly used for serial ports and internal modems:
  263.  
  264.   Port     Likely Addresses (hexadecimal)
  265.   COM1         03F8
  266.   COM2         02F8
  267.   COM3         03E8, 3220 (PS/2)
  268.   COM4         02E8, 3228 (PS/2), 02E0
  269.  
  270. You probably won't find a serial port at any address not listed above, but you
  271. might find a port at another port's expected address.  The use of these
  272. addresses in SET COMn commands should be relatively harmless (provided you
  273. don't also specify an interrupt, explained later); if there is no error
  274. message, Kermit found a possibly usable port. If there is an error message, no
  275. harm should have been done.
  276.  
  277. Now let's look at the other cause for the "This port will be operated through
  278. the BIOS" message, namely that an address was found in segment 40, but the
  279. device at that address does not appear to be a genuine serial port.
  280. Explanations might include:
  281.  
  282.  1. The device is at a different address.  Check your device's configuration
  283.     again, or else your SET COMn command.
  284.  
  285.  2. Your device is indeed at the given address, but its registers do not
  286.     contain values expected of a true PC serial port.  In that case, BIOS
  287.     operation is the only alternative.
  288.  
  289.  3. Your device is at the given address, but there is a conflict with another
  290.     device at that address or the machine's bus speed (not CPU speed) is set 
  291.     so high that the hardware test gave confusing results.
  292.  
  293. When Kermit operates a port through the BIOS, rather than directly, it will be
  294. MUCH slower and might not work at all because the BIOS requires the CD, CTS,
  295. and DSR modem signals to be asserted by the device connected to the port (and
  296. the CD signal is normally NOT asserted by a modem before it has made a
  297. connection to another modem).  In that case, you will have to configure the
  298. device (e.g. modem) to assert DSR, CTS, and CD always, or wire your modem
  299. cable to fake these signals (e.g. by connecting CD and DSR together).
  300.  
  301. Assuming you have found the right address for your COM3 or COM4 port (or
  302. nonstandard address for COM1 or COM2), and you want these addresses to be set
  303. correctly for Kermit at all times, even if it doesn't read its initialization
  304. file, you can put a command like the following in your AUTOEXEC.BAT file:
  305.  
  306.   set kermit=com3 \x3e8; com4 \x2e8;
  307.  
  308. INTERRUPTS
  309.  
  310.   "I can send characters to the modem, but I never see any on my screen."
  311.  
  312. This complaint (often arising from the user's observation of the modem lights
  313. and speaker), also known as "can-talk-but-not-listen syndrome", usually means
  314. that the communication device was found at the expected address, but Kermit's
  315. idea of its interrupt is wrong.     What's an interrupt?
  316.  
  317. To achieve high-speed communication without impacting other applications,
  318. Kermit reads characters from a serial device using "interrupts".  Whenever a
  319. character arrives at the serial device, the device sends a signal, called an
  320. interrupt, that can be "caught" by application software like Kermit, leaving
  321. the application free to do other work in the meantime without having to
  322. constantly look at the serial port to see if any characters have arrived (an
  323. operation called "polling", which is used by some other communications
  324. programs).  Communications programs that use polling are not sensitive to
  325. interrupts being set improperly and might therefore work with improperly-
  326. configured machines where Kermit will not (until you give it the required
  327. information), but they also tend to take over the entire computer.
  328.  
  329. In contrast to polling programs, Kermit is normally waiting for input from the
  330. keyboard, and is therefore idle if you are not typing and no characters are
  331. arriving at the communication port.  In multi-tasking environments such as
  332. Windows or OS/2, this allows other applications the largest possible share of
  333. the CPU while Kermit is running.
  334.  
  335. When a character arrives at the port, an interrupt signals Kermit to wake up
  336. from its keyboard-wait state and read the character from the port.  But Kermit
  337. needs a way of knowing which device the interrupt came from, so it will not
  338. erroneously read characters from the wrong one.  The device is identified by
  339. an Interrupt Request (IRQ) number, a small number like 3 or 4.  The BIOS does
  340. not record the IRQ number used by a serial port because the BIOS uses polling
  341. rather than interrupts.  The communications software has to know which IRQ to
  342. use.  By convention from the original IBM PC, COM1 uses IRQ 4 and COM2 uses
  343. IRQ 3.  There is no standard for COM3 and above, but certain conventions are
  344. normally followed:
  345.  
  346.   Port     PS/2  Others
  347.   COM3     IRQ3    IRQ4
  348.   COM4     IRQ3    IRQ3
  349.  
  350.   WARNING: Certain serial port cards and internal modems allow
  351.   themselves to be configured with different IRQ numbers (such as 9),
  352.   even on COM1 or COM2.     Check your device's installation instructions.
  353.  
  354. Some types of PCs (PS/2s, for example) allow sharing of IRQ numbers, provided
  355. each application has its own interrupt service routine and each such routine
  356. is built to "chain" interrupts properly (i.e. pass them along to other
  357. applications if they have arrived at the wrong place).  This works, for
  358. example, with Kermit on a PS/2; you can run two copies of Kermit under
  359. Windows, one using COM2/IRQ3 and the other using COM3/IRQ3 (i.e. two ports,
  360. same IRQ), both doing input and output simultaneously with no confusion.  But
  361. on most types of PCs, IRQs can NOT be shared, so each device must have a
  362. unique IRQ number. This caution applies especially when you have a serial
  363. mouse on IRQ 3 or 4.
  364.  
  365. Once Kermit knows the COM port's address, it tests to see which IRQ number, 3
  366. or 4, the device uses.  This is a safe test and doesn't cause any modem
  367. signaling or communication to take place.  The PC architecture has a limited
  368. range of IRQ numbers available, and so (usually) there can not be a unique IRQ
  369. number for each serial port when there are more than two, so in most cases no
  370. more than two serial ports can be active at once.
  371.  
  372. MS-DOS Kermit tests first for IRQ4, and then if there is no response, IRQ3.
  373. If both tests fail, a default value is used (on PS/2s, the default is IRQ4 for
  374. COM1 and IRQ3 for COM2-4; on others is it is IRQ4 for COM1 and COM3, IRQ3 for
  375. COM2 and COM4).     No error message is given in this case, but
  376. "can-talk-but-not-listen syndrome" is a likely result.
  377.  
  378. Some add-on communication boards or internal modems are set up to use IRQ
  379. numbers other than 3 or 4 in order to avoid conflicts with COM1 or COM2 and/or
  380. to allow more than two COM ports to be active at once. But this can be
  381. dangerous -- for example, IRQ 5 (which is often used for this purpose) is also
  382. used by the hard disk controller on the PC/XT.  IRQ 7 is often used by network
  383. boards.  For this reason, Kermit does not automatically test any IRQ numbers
  384. other than 3 or 4, and does not use any other IRQ number by default.
  385.  
  386. But it is sometimes necessary, particularly on ISA (Industry Standard
  387. Architecture) bus machines (PC/ATs and compatibles) and earlier (such as PCs
  388. and XTs) to use an IRQ other than 3 or 4, for example when when an internal
  389. modem is installed as COM3 on IRQ4, and then use of COM1 prevents COM3 from
  390. working, and vice versa.  This problem can often be solved by reconfiguring
  391. the board to use an otherwise unused unique IRQ number.  Ideally this would be
  392. a normally free IRQ such as 10 or 11, but unfortunately most communication
  393. boards are not configurable for IRQs higher than 7.  Here is a brief, and
  394. definitely not comprehensive, guide to the low IRQ numbers (with IRQ numbers
  395. expressed in decimal):
  396.  
  397.      2    Normally available, but some video boards use it to obey an obsolete
  398.     standard for indicating vertical refresh.  Adjust video board jumpers
  399.     to not do this.     On 286's and above, IRQ 2 is also known as IRQ 9:
  400.     same IRQ, alternate number.  Windows 3.0 had difficulty with devices
  401.     using IRQ 2, but Windows 3.1 is better.
  402.  
  403.      3    Normally COM2 and COM4.     PS/2's use IRQ 3 for all serial ports above
  404.     COM1.  IRQ3 is also a favorite "factory default" of many local area
  405.     network (LAN) adapters.
  406.  
  407.      4    Normally COM1 and informally COM3 (except on PS/2s).
  408.  
  409.      5    Secondary parallel port.  Parallel ports are rarely interrupt-driven
  410.     (except for Novell RPRINTER users) so this wire becomes free if
  411.     you unjumper the IRQ on the parallel port board.  LAN adapters are
  412.     frequently placed on IRQ 5.  PC/XTs use IRQ 5 for the hard disk.  Be
  413.     careful with this one.
  414.  
  415.      6    Floppy disk drives. Leave it alone!
  416.  
  417.      7    Primary parallel port.    Remove as described for IRQ 5.    Be careful,
  418.     LAN adapters are frequently placed here.
  419.  
  420.      9    Alias for IRQ 2.
  421.  
  422.     10    Usually free.
  423.  
  424.     11    Usually free.
  425.  
  426.     12    Used by the IBM bus mouse, otherwise usually free.
  427.  
  428.     13    Math coprocessor errors are trapped here, otherwise frequently free.
  429.  
  430.     14    Used by hard disk on 286 and above.  Leave alone!
  431.  
  432.     15    Some SCSI controllers use this.     Usually free.
  433.     
  434. If your communication board uses an IRQ other than 3 or 4, you will experience
  435. the "can talk but not listen" syndrome when using Kermit.  To fix it, simply
  436. inform Kermit of the device's IRQ number.  This is done in the SET COMn
  437. command, after the address:
  438.  
  439.   SET COMn <address> <irq>
  440.  
  441. for example:
  442.  
  443.   SET COM3 \x03e8 5
  444.  
  445. When you include a number (like 3, 4, 5, 6, or 7) after the port address
  446. (separated by a space), Kermit skips its IRQ test and uses the IRQ number you
  447. specified the next time you give a SET PORT command for that port.
  448.  
  449.   AVOID address and IRQ conflicts; these items MUST NOT overlap existing
  450.   equipment. SERIOUS DAMAGE can result if, for example, the IRQ number you
  451.   give is the same as the one used by your disk controller or network
  452.   adapter.  Incorrect operation can result if the interrupt is in use by a
  453.   less critical device, such as a mouse.
  454.  
  455. It is necessary to specify the IRQ number in either of these two situations:
  456.  
  457.   1. The communication device uses an IRQ number other than 3 or 4.
  458.  
  459.   2. Kermit's IRQ test interferes with Windows or a similar environment.
  460.  
  461. Check your PC's configuration carefully before specifying an IRQ number.
  462. Before starting Kermit, you can use certain public domain or commercial
  463. utilities, such as MAPMEM, Northgate QAPLUS, Quarterdeck MFT, or the MSD
  464. utility shipped with Windows 3.1 to get an idea of which IRQ numbers are
  465. already in use (these utilities are, of course, not foolproof -- for example,
  466. they can't tell what IRQs are used by programs that are not presently loaded).
  467.  
  468. If, even after establishing the device's interrupt, Kermit still fails to
  469. operate correctly (or reliably), check to see whether:
  470.  
  471.   1. Some other device (such as a mouse or LAN adapter) is generating the 
  472.      same interrupt.
  473.  
  474.   2. Some other software (such as a mouse or video driver) is catching the 
  475.      same interrupt.
  476.  
  477. If you find a conflict, you'll have to resolve it: remove the offending device
  478. driver or TSR from your CONFIG.SYS or AUTOEXEC.BAT file or turn it off
  479. temporarily (e.g. with the MOUSE OFF command for certain mouse drivers); or,
  480. if possible, reconfigure one of the conflicting devices to use a different
  481. interrupt.
  482.  
  483. Example: A PC (not PS/2) is delivered with a serial mouse on COM1 and with
  484. COM2 as a free serial port.  COM2 can be used with an external modem, but you
  485. can't put an internal modem on COM3 because its IRQ conflicts with the mouse
  486. and the COM4 address clashes with an 8514/A video adapter (such as the ATI
  487. Ultra+).  Neither the mouse interrupt nor the video board address can be
  488. changed.  So to install an internal modem, you must remove the serial mouse
  489. and driver and, if you need a mouse, replace it with a bus mouse.
  490.  
  491. PROBLEMS WITH MODEMS
  492.  
  493.   "I just bought and installed an XYZ V-Dot-Everything internal modem, and
  494.   it works with <name-deleted> communication package, but not with Kermit".
  495.  
  496. This has long been a common complaint about internal modems.  The same
  497. complaint is also now being heard with alarming frequency about some of the
  498. newer external modems.  With internal modems, particularly when they are
  499. installed on COM3 or COM4, the most common problems are:
  500.  
  501.  1. Kermit doesn't know the modem's address, or the device is using an IRQ
  502.     number other than 3 or 4.  These problems can be fixed by giving the
  503.     appropriate SET COMn command to Kermit.
  504.  
  505.  2. The internal modem is installed incorrectly, with an address or IRQ that
  506.     conflicts with one already in use on your PC.
  507.  
  508.  3. The internal modem does not correctly emulate a real IBM PC serial port,
  509.     and therefore fails Kermit's hardware test, and therefore can only be
  510.     used through the BIOS.
  511.  
  512.  4. The device is in a laptop, notebook, or palmtop computer, and power to 
  513.     the internal modem or serial port has been disabled in the CMOS setup,
  514.     or has been turned off automatically when the cover is closed or the
  515.     machine shut down.
  516.  
  517. In mid-1992, a new generation of low-cost, high-speed modems, both internal
  518. and external, began to appear on the market.  These modems typically offer a
  519. wide range of features: V.32 and V.32bis modulation, V.42 and MNP error
  520. correction, V.42bis and MNP data compression, etc.  Unfortunately, many of
  521. these modems suffer from bugs not found in earlier modems.  The problems are
  522. generally related to initialization of the modem and interaction with its
  523. command processor.  Some common complaints:
  524.  
  525.  1. "The modem won't dial or respond to commands".  Or the modem ignores
  526.     commands when Kermit's PARITY is set to a particular value, like EVEN.  Or
  527.     commands are not processed correctly above a certain interface speed.
  528.  
  529.  2. "I can dial successfully, and in general send characters to and through
  530.     the modem, but I never get any characters back."  This looks suspiciously
  531.     like the "talk-but-not-listen" problem, but in some cases it is a bug in,
  532.     or a configuration problem with, the modem, having nothing to do with
  533.     Kermit: the modem is simply not sending any characters to the PC.
  534.  
  535.  3. "After using the modem with <name-omitted> communication software, it
  536.     also works with Kermit, but it won't work with Kermit unless I run
  537.     <name-omitted> first."
  538.  
  539.  4. "I can communicate in command-mode with the modem, up until I give it
  540.     an ATZ command, at which point it seems to die."
  541.  
  542.  5. The modem does not pass the BREAK signal.
  543.  
  544.  6. The DSR signal goes off after successful dialing.
  545.  
  546. And so on.  All of these are modem, not Kermit, problems.  Some suggestions
  547. for overcoming them:
  548.  
  549.  1. Before giving a DIAL command, which invokes a macro containing OUTPUT
  550.     commands for the modem's command processor, give the command:
  551.  
  552.     SET OUTPUT PACING <milliseconds>
  553.  
  554.     For example:
  555.  
  556.     SET OUTPUT PACING 100
  557.     OUTPUT AT Q0 E1 V1 &F\13
  558.  
  559.  2. External modems only: Check that your modem cable has wires for (at least)
  560.     the TD, RD, SG, CTS, RTS, DSR, CD, and DTR RS-232 signals.    If it does
  561.     not, replace the cable with a real modem cable, or (temporarily) configure
  562.     your modem to compensate for the missing signals.
  563.  
  564.  3. Read your modem manual and check your modem's configuration.  Perhaps its
  565.     interface speed is locked to a different speed than the one Kermit is
  566.     using.  Perhaps Kermit is set to use RTS/CTS flow control, but the modem
  567.     is not asserting CTS.  Also, check its factory and/or saved settings, and
  568.     under what conditions they are restored (for example, are they restored
  569.     when the PC drops DTR?).  How are you selecting saved settings -- read
  570.     your modem manual about (e.g.) the difference between AT&F and AT&F2.  Be
  571.     aware that the AT&Fn commands might not restore all S-registers, so double
  572.     check them.  Be particularly sensitive to the registers that control
  573.     interface speed, modulation technique, error correction, data compression,
  574.     negotiation, and fallback, and note that each modem maker probably uses
  575.     different registers and commands to control each of these features.
  576.  
  577.  4. Try the following sequence to initialize the port (using COM3 in this
  578.     example):
  579.  
  580.     SET COM3 <address> <irq>    ; (if necessary)
  581.     SET PORT 3            ; Select port 3
  582.     HANGUP                ; Drop DTR on port 3
  583.     SET PORT 3            ; Re-initialize port 3
  584.  
  585.  5. SET PARITY NONE when talking to the modem, and then set parity to whatever
  586.     the remote host or service requires after making the connection.  (NOTE:
  587.     MS-DOS Kermit might set its parity to some other value automatically as a
  588.     result of automatic parity detection during file transfer.)
  589.  
  590.  6. Ensure your PC bus speed is 8MHz.  Some PCs (not PS/2s) come with a BIOS
  591.     SETUP facility that lets you change the PC's bus speed, memory wait
  592.     states, etc.  In general, it is dangerous to deviate from the defaults,
  593.     particularly from the 8MHz bus speed, a standard for add-on devices; it
  594.     might be required by your communication board or internal modem.
  595.  
  596.  7. Dial at a lower speed.  Make your interface speed match the modulation
  597.     speed -- e.g. use 9600 for V.32, 2400 for V.22bis, etc.  Turn off modem
  598.     error correction and compression.  etc etc.  NOTE: connection problems
  599.     between the two modems have nothing to do with Kermit and are beyond the
  600.     scope of this document.  If a modem appears to dial correctly, gets
  601.     connection tones, and then hangs up, it is a problem between the two
  602.     modems (involving one or both modems and/or the phone company), and
  603.     indicates a modem configuration problem, a bug, or a basic incompatibility
  604.     between the calling and answering modems.
  605.  
  606.  8. The ATZ problem.  If the modem doesn't work after an ATZ command, HANGUP
  607.     and the SET LINE again.  If that doesn't do it, power the modem off and on.
  608.  
  609.  9. If the modem can't be configured to pass the BREAK signal, but it does
  610.     correctly implement a command for sending BREAK, such as AT\B9, define
  611.     an MS-DOS Kermit macro, SBREAK, to send a BREAK as follows:
  612.  
  613.       define sbreak pause 1, output +++, pause 1, output ATB\{92}9\13, -
  614.     pause 1, output ATO\13, connect
  615.     
  616.     and assign it to the key of your choice, for example F1:
  617.  
  618.       set key \315 {Ksbreak}
  619.  
  620. 10. Call your modem maker's technical support number.  Ask if they have
  621.     replacement chips to fix bugs in your modem.
  622.  
  623. DISK INTERRUPT CONFLICTS
  624.  
  625. On certain PCs, Kermit file transfers (or terminal sessions that are being
  626. logged to disk) through serial communication devices (COM1 thru 4) can suffer
  627. from data loss during disk read/write operations.  This is apparently because,
  628. on these PCs, the entire interrupt mechanism is TURNED OFF during disk reads
  629. or writes.  Thus, while the disk driver is active, no interrupts are generated
  630. by incoming characters, and therefore they are likely to be lost (particularly
  631. if the UART does not have its own buffer).
  632.  
  633. If you experience data loss during uploads (watch the "Retries" counter), try
  634. sending the same file from a RAM disk; if the retries go away, your PC has
  635. this problem.  If downloads to disk have lots of retries, try downloading the
  636. same file to the NUL device (tell MS-DOS Kermit to RECEIVE NUL); same deal.
  637.  
  638. On some PC's, it has been observed that the disk-interrupt conflict occurs
  639. when using a certain COM port, but not a different one.  For example, on a
  640. PS/2 Model 70 A20, conflicts occur on COM2 but not COM1.
  641.  
  642. MS-DOS 5.0 AND 6.0
  643.  
  644. You should not use MS-DOS Kermit (or other communications software) under
  645. DOSSHELL.  Unlike Windows, DesqView, OS/2, etc, DOSSHELL is NOT a multitasking
  646. environment.
  647.  
  648. MICROSOFT WINDOWS, DESQVIEW, OS/2, ETC.
  649.  
  650. Although MS-DOS Kermit can work in these environments, and even takes advantage
  651. of many of their features, it does not have a "graphical user interface".  You
  652. still have to type commands to the MS-Kermit> prompt or execute them from
  653. command files with the TAKE command.
  654.  
  655. OS/2 1.x...
  656.  
  657. NOTE: The recommended communications software for OS/2 (any version) is
  658. C-Kermit 5A(188) or later, which is a native OS/2 application.
  659.  
  660. Under OS/2 1.3 and earlier, MS-DOS Kermit only runs in full-screen mode.
  661. Under 1.x of OS/2, the serial port must first be conditioned by the command:
  662.  
  663.   SETCOM40 COM1=ON
  664.  
  665. OS/2 2.0 and 2.1...
  666.  
  667. MS-DOS Kermit can run in a window of OS/2 2.x and, of course, also in a full
  668. screen.  Kermit's flow control has no effect because OS/2 itself is
  669. controlling the device.  You can configure OS/2 to handle flow control itself
  670. by adding a command like the following to your STARTUP.CMD file:
  671.  
  672.     MODE COM1 XON=ON          (for XON/XOFF software flow control) 
  673. or:
  674.     MODE COM1 RTS=HS OCTS=ON  (for RTS/CTS hardware flow control)
  675.  
  676. If your PC's communication port is a 16550A[FN] UART serial communication
  677. adapter (as is standard on the PS/2), it has a built-in buffer to improve
  678. performance.  To enable use of the 16550's buffering capability, add BUFFER=ON
  679. to your MODE command:
  680.  
  681.     MODE COM1 XON=ON BUFFER=ON           (for XON/XOFF software flow control) 
  682. or:
  683.     MODE COM1 RTS=HS OCTS=ON BUFFER=ON (for RTS/CTS hardware flow control)
  684.  
  685. If you don't have a buffered UART, MS-DOS Kermit will lose characters galore
  686. at high transmission speeds.
  687.  
  688. IDLE_SENSITIVITY should be set to 0 and IDLE_DETECTION_TIME should be 100 to
  689. reduce the jerkiness of DOS sessions.
  690.  
  691. TCP/IP (and presumably other networks supported by MS-DOS Kermit) cannot be
  692. used with OS/2.  OS/2's network interface is totally different from the
  693. methods (such as Packet Drivers) used by DOS.  (You can, however, run MS-DOS
  694. Kermit over packet drivers, etc, if you boot a suitably-equipped DOS from your
  695. A: disk in a DOS window.)
  696.  
  697. MICROSOFT WINDOWS...
  698.  
  699. MS-DOS Kermit operates under Microsoft Windows 3.0 and 3.1 in fullscreen mode
  700. on all machines, and in a window on 386-class or higher machines that have
  701. enough memory for Windows to operate in Enhanced Mode (3-4 megabytes are
  702. required).  Be sure to install the KERMIT.PIF file so Windows can can set
  703. things up correctly for Kermit operation.  See the instructions in MSKERM.HLP.
  704.  
  705. Under Windows 3.x Real or Standard mode, you can use still use MS-DOS Kermit
  706. as a full-screen DOS application.  Kermit works in a window on all PCs (if
  707. they have enough memory) under Windows 2.0.
  708.  
  709. The use of COM3 and COM4 under Windows is problematic, but most users report
  710. success after finding the right "SET COMx <address> <irq>" command.
  711.  
  712. When running Kermit in two windows at once, one on COM1, one on COM2, Windows
  713. complains that both applications want to access COM1.  To make sure that COM1's
  714. IRQ 4 is not touched when starting COM2 (part of the "find the IRQ" test),
  715. specify the COM2 port parameters explicitly as SET COM2 \x2f8 3 (standard port
  716. address and IRQ for COM2) to make Kermit skip the test.
  717.  
  718. Similarly, if you have a serial mouse on COM1, and you want Kermit to use (for
  719. example) COM2 for communication, add the following to your MSCUSTOM.INI
  720. file to prevent Kermit from touching COM1 and interfering with your mouse:
  721.  
  722.   SET COM2 \x2f8 3 ; (substitute appropriate values)
  723.   SET PORT COM2
  724.  
  725. Kermit's performance under Windows depends on the BIOS, the machine
  726. architecture, the serial port hardware, which drivers and TSRs are loaded, the
  727. system load, and Windows settings.  A 16550A UART is particularly important
  728. under Windows, as is an effective flow control method. For further tuning,
  729. look at the Windows files SYSIN*.TXT for information about SYSTEM.INI settings
  730. related to communication ports, particularly COMxBuffer and COMBoostTime.
  731.  
  732. When running MS-DOS Kermit under Windows, specifying a ",P" at the end of a
  733. serial port setting in WIN.INI or in a MODE command can cause loss of
  734. characters from the serial port.  Remove the ",P" from the setting.
  735.  
  736. See KERMIT.HLP for instructions on using Kermit's TCP/IP support under Windows.
  737.  
  738. DESQVIEW and DESQVIEW/X ...
  739.  
  740. Users of DESQview set "Optimize Communications" in the Advanced menu to "No".
  741.  
  742. DESQview/X reportedly requires that the serial port be configured to
  743. "optimize" to prevent Kermit from losing characters.  Network connections
  744. (TCP/IP over a packet driver or ODI) within an X window of DESQview/X
  745. apparently do not work.
  746.  
  747. VIDEO PROBLEMS
  748.  
  749. Kermit does not mix well with NNANSI.SYS, a public domain (or shareware?)
  750. console driver that replaces ANSI.SYS, and which implements "hardware
  751. scrolling", a case of two non-cooperating programs directly manipulating
  752. the video adapter at the same time!  Similar comments apply to other console
  753. drivers that access the screen directly, including ANSI.COM (from PC Magazine,
  754. circa 1988).
  755.  
  756. To turn off NNANSI.SYS's direct screen access, put the following commands in
  757. your MSCUSTOM.INI file:
  758.  
  759.   echo \27[=98l                  ; Reset "fast mode"
  760.   define on_exit echo \27[=98h   ; Set "fast mode"
  761.  
  762. SERIAL COMMUNICATIONS
  763.  
  764. ANSI.COM, mentioned above in connection with video problems, also interferes
  765. with serial communications.  Solution: unload it, use ANSI.SYS instead.
  766.  
  767. On PCs with high-quality buffered UARTs, Kermit can be used at speeds up to
  768. 57600 bps under DOS (under Windows or DesqView, the maximum speed is probably
  769. lower).     115200 bps works only with a very short shielded cable, and the async
  770. adapters of the two machines in perfect tune.  Some VAX serial port interfaces
  771. are out of tolerance at 19,200 bps and faster.    Some of the new high-speed PCs
  772. (486s like, for example, the IBM PS/VP or the Gateway 2000) come with
  773. unbuffered UARTs.  Despite the speed of the CPUs, these new machines perform
  774. serial communications less reliably than older machines that run at 1/4 the
  775. speed or less, but that have buffered UARTs (like the PS/2-70).
  776.  
  777. MS-DOS Kermit will tell you whether you have a buffered UART:
  778.  
  779.   SET PORT 2
  780.   SHOW COMMUNICATIONS
  781.   ...
  782.   COM1 Address: Port \xf38, IRQ 4, 16550A UART FIFO
  783.  
  784. 16550A UART means you have the good kind, FIFO means it has a "First-In
  785. First-Out" buffer.  If Kermit does not say you have a 1655A UART FIFO, and you
  786. are suffering from performance or data loss problems, replace it (if
  787. possible!)  with a 16550A.
  788.  
  789. If your speed is set too high, the symptom might be lost or garbled characters
  790. or graphics images on the screen, or data-overrun beeps.  Normally flow control
  791. prevents these problems so use it if you can.  Printing while in CONNECT mode
  792. needs flow control to be active.
  793.  
  794. MS-DOS Kermit does not monitor the communication line for carrier loss during
  795. terminal emulation or file transfer.  You can SHOW MODEM or SHOW COMMUNICATIONS
  796. to inquire about CD, DSR, and CTS.  The script command WAIT permits sensing
  797. carrier presence in a script program.
  798.  
  799. The SHOW MODEM and WAIT commands work right only if your modem or other
  800. communication device is configured to raise and lower the DSR, CTS, and CD
  801. signals appropriately, and the cable that connects your PC to the modem passes
  802. these signals through.    For some modems, the factory setting is to always keep
  803. CD on, even if there is no connection.    Consult your modem manual.
  804.  
  805. For serial devices, the HANGUP command (and Ctrl-]H in CONNECT mode) works
  806. only if the cable that connects your PC to the communication device passes the
  807. DTR signal through, and if the communication device itself is configured to
  808. hang up or otherwise terminate the connection when the DTR signal is lowered
  809. by the PC.  For some modems, the factory setting is to ignore DTR transitions.
  810. Consult your modem manual (for example, tell a Hayes modem to "AT&D2").     NOTE:
  811. in version 3.11, the HANGUP command turned off DTR for about 1/2 second and
  812. then turned it back on again.  In version 3.12 and later, the HANGUP command
  813. turns off DTR until the next time you issue a command that accesses the serial
  814. port.  If you can't make the HANGUP command work, define a macro to send a
  815. hangup command to the modem, for example (for Hayes modems):
  816.  
  817.   DEFINE MYHANGUP PAUSE 1, OUTPUT +++, PAUSE 1, OUTPUT ATH0\13
  818.  
  819. and then use this macro in place of the regular HANGUP command.
  820.  
  821. TERMINAL EMULATION
  822.  
  823. Kermit's VT320/340 emulator lacks the following features:
  824.  
  825.  . Smooth scroll
  826.  . Downloadable soft fonts
  827.  . ReGis graphics (VT340/330)
  828.  . Dual sessions in split screens (VT340/330)
  829.  . Local screen editing and block transmission (for security reasons)
  830.  . True double height/width characters (these are simulated)
  831.  . Selective erasure (as a character attribute, a formatted screen item)
  832.  . Some of the exotic and rarely-used features of the DEC VT340/330 series:
  833.    formatted screen and graphics operations highly specialized to DEC hardware.
  834.  
  835. MS-DOS Kermit does not include "ANSI" or "PCTERM" emulation.  If you need
  836. this, as when logging in to a PC-based BBS, make sure you have the ANSI.SYS
  837. (part of DOS) console driver loaded, and then tell MS-DOS Kermit to SET
  838. TERMINAL TYPE NONE, SET PARITY NONE, and SET TERMINAL BYTESIZE 8, and make
  839. sure your PC's code page agrees with what the BBS thinks it is, otherwise
  840. box-drawing characters might come out looking like accented letters. Since
  841. Kermit's own terminal emulator is not active when your terminal type is NONE,
  842. the mode line, screen rollback, similar features are not available.
  843.  
  844. On certain "national keyboards", like the German one, Kermit's normal escape
  845. character, Ctrl-] (Control-Rightbracket) does not seem work.  This is because
  846. certain control characters are typed differently on these keyboards.  On the
  847. German keyboard, Ctrl-] is produced by holding down the Ctrl (Strg) key and
  848. pressing the + (plus) key.  MS-DOS Kermit has no way of knowing this, and
  849. continues to display the escape character as "^]" in the mode-line help text.
  850.  
  851. Kermit does not work with certain Swedish keyboard drivers because of a bug in
  852. the keyboard driver.  Workaround: use a different keyboard driver.  Reportedy
  853. there are several different Swedish keyboard drivers available.
  854.  
  855. Do not attempt to plug an "enhanced" (101) keyboard into a PC/XT or earlier.
  856. The BIOS on early PCs does not support the newer keyboards, even if you
  857. install the corresponding keyboard driver.
  858.  
  859. If VAX/VMS thinks you have a VT220 or VT320, it sends 8-bit control sequences.
  860. Kermit does not understand them unless you SET TERMINAL BYTESIZE 8.  The
  861. symptom is the appearance of fragments of escape sequences on the screen and
  862. wrong cursor positioning, and possibly fractured tab settings, particularly
  863. during EVE sessions.  You can prevent VMS from sending 8-bit control sequences
  864. (if you really do not have an 8-bit connection) by giving the VMS command SET
  865. TERMINAL /NOEIGHT.  For VAX/VMS, you should also use Xon/Xoff flow control in
  866. both directions (SET TERM /TTSYNC /HOSTSYNC on VMS).
  867.  
  868. In VT100/200/300 emulation on the IBM PC family, receipt of ESC [ 4 m (turn on
  869. underscore) results in a color change rather than underscore on IBM CGA, EGA
  870. and other color displays.  IBM display adapters have one less attribute than
  871. DEC monochrome terminals, and in addition the two systems intensify dots
  872. differently (IBM does foreground/character dots only, whereas DEC can
  873. illuminate any dot).
  874.  
  875. SET TERMINAL COLOR 1 [3xx 4xx] (used to make the foreground color bright), if
  876. issued when SET TERMINAL SCREEN REVERSE is in effect, reverts to normal video.
  877.  
  878. Similary, if SET TERMINAL COLOR 1 is in effect, the effects of the host-
  879. generated escape sequences CSI 1 m and CSI 0 m are reversed.
  880.  
  881. If certain incomplete escape sequences (e.g. Operating System Command) are
  882. received during terminal emulation, Kermit can hang waiting for the string
  883. terminator that never comes, usually because of noise on the communication
  884. line.  Reset the terminal emulator by pressing Alt-= (Alt-equals), the default
  885. key for \Kreset.
  886.  
  887. Kermit assumes 25 screen lines but can adapt to other lengths if it knows how
  888. to get this information from the video adapter.     There still might be some
  889. confusion about screen length when switching between text and graphics modes,
  890. or between 80 and 132 column mode, or escaping back from CONNECT mode, due
  891. primarily to lack of reliable or consistent information from the many different
  892. kinds of video adapters.
  893.  
  894. To get properly formatted screens during terminal emulation, be sure to inform
  895. the remote host of your screen width and length.
  896.  
  897. So that key translation and macros can work on both IBM and non-IBM compatible
  898. PCs, Kermit uses the system BIOS to obtain key scan codes.  But the IBM BIOS
  899. does not produce scan codes at all for certain keys, and may produce duplicate
  900. scan codes for others.    Num Lock, Print Screen, Scroll Lock, and Pause are
  901. examples.
  902.  
  903. When you PUSH to DOS (including when you use Kermit's RUN command), and you
  904. have XON/XOFF flow control enabled, Kermit sends an XOFF (Ctrl-S) to the host
  905. when you leave, and XON (Ctrl-Q) when you return (if you have RTS/CTS flow
  906. control enabled, Kermit turns off RTS).     This prevents data transmitted by the
  907. host from being lost.  However, if you are using Xon/Xoff and you do this
  908. while using the EMACS text editor on the host, the Ctrl-S will be interpreted
  909. as a Search command, and the Ctrl-Q as a Quote command.     When you return to
  910. EMACS, type several Ctrl-G's to get back to normal.
  911.  
  912. Similar comments about sending Xoff and Xon apply when Kermit is commanded
  913. to change its screen size between 80 and 132 columns.
  914.  
  915. Session logging can be turned on using the LOG SESSION command, and it can
  916. be toggled on and off during terminal emulation by using whatever keys are
  917. associated with the verbs \Klogoff and \Klogon.     One user stated the
  918. requirement to enable a session log, but to have it initially turned off.
  919. This can be done as follows (using the F1 and F2 keys as examples):
  920.  
  921.   SET KEY \315 {\Kloginit}  ; F1 to turn on log
  922.   SET KEY \316 \klogoff        ; F2 to turn log off
  923.   DEFINE loginit log session, set key \315 \klogon, define loginit, connect
  924.  
  925. To log your session to a printer, add the word PRN after "log session" in
  926. the third line above.
  927.  
  928. The session log is written to disk by DOS.  The frequency with which DOS
  929. updates this file is governed by the BUFFERS= line in your CONFIG.SYS file (see
  930. your DOS manual).  If you allocate a large number of buffers in CONFIG.SYS,
  931. disk operations occur infrequently and this improves performance.  If you need
  932. to have the session log updated more frequently to minimize the loss of data
  933. when there is a power failure, you can do this (at the expense of efficiency)
  934. by allocating a smaller number of buffers in CONFIG.SYS.
  935.  
  936. 132-COLUMN MODE
  937.  
  938. If you have a monitor with fixed horizontal frequency but a video adapter that
  939. Kermit knows how to switch into 132 column mode, you will see only garbage on
  940. your screen whenever Kermit switches to 132 columns.  There is no way to tell
  941. Kermit to ignore "switch to 132 columns" commands.  If you buy a
  942. 132-column-capable video adapter, be sure you have a compatible monitor.
  943.  
  944. GRAPHICS TERMINAL EMULATION
  945.  
  946. In earlier releases, MS-DOS Kermit responded to ESC 1 and ESC 2 for
  947. automatically switching into and out of Tektronix graphics mode, for the
  948. benefit of some long-forgotten host-based graphics software.  This feature
  949. has been discontinued because these escape sequences mean something entirely
  950. different, namely "switch character size" in VT340 Tek mode.
  951.  
  952. PS/2 Model 25 and 30 MCGA adapter is used in low-resolution CGA mode by
  953. default; images may be elongated or truncated.    Hi-resolution graphics can be
  954. done (as of version 3.11) via SET TERM GRAPHICS VGA, but the PC might not be
  955. able to keep up at speeds above 9600 bps.
  956.  
  957. When you type the escape character (normally Ctrl-]) while in Tektronix
  958. graphics mode, the screen goes back to text memory.  Then when you type the
  959. argument character, the graphics screen reappears (unless the argument was C or
  960. P).  Ctrl-]F will not file the graphics screen, but rather the text screen,
  961. because that's the screen that's showing after type the Ctrl-] key.  To file
  962. the graphics screen (in TIFF format), use \Kdump (normally on Ctrl-Keypad-End).
  963.  
  964. You can't dump the Tektronix screen while the GIN-mode crosshair cursor is
  965. active; Kermit's keyboard translator is not active.  Key strokes (of regular
  966. typewriter keys) or mouse actions are used to transmit the crosshair
  967. coordinates.  If you press a non-typewriter key, Kermit just beeps.
  968.  
  969. Kermit does not emulate a particular kind of color graphics terminal, such as a
  970. DEC ReGIS display or a Tektronix 41xx or 42xx series.  However, it can be used
  971. for color graphics by mixing ANSI color-setting escape sequences with Tektronix
  972. or Sixel commands.  This requires graphics software vendors adding support for
  973. MS-DOS Kermit graphics to their packages (so far, WordPerfect Corp has done
  974. this for their host-resident products).  There is at least one ReGis-to-Sixel
  975. converter on the market: RETOS, a DEC product for VAX/VMS.
  976.  
  977. Problems may occur when using Kermit with host-resident (VAX/VMS) versions of
  978. WordPerfect because the color palette report sent upon request of WordPerfect
  979. is very long. If the host is not configured properly, parts of the report will
  980. be lost because of overruns on the VMS side.  SET TERM /HOSTSYNC and /TTSYNC
  981. are required for WP/VMS.  Even then intervening communication boxes (e.g.
  982. terminal servers) can become overloaded with the 200++ byte response.
  983.  
  984. PRINTER SUPPORT
  985.  
  986. Kermit uses DOS services for printing. There is no knowledge of particular
  987. printer types in Kermit.  Kermit determines whether the printer is ready, or
  988. whether there has been a printing error, via DOS's return code.  If DOS tells
  989. Kermit the printer is not ready, Kermit changes the printer device name to NUL
  990. so subsequent print operations won't block.  To reenable printing operations
  991. (e.g. after turning on the printer, adding paper, etc), use a SET PRINTER
  992. command such as SET PRINTER PRN or SET PRINTER LPT1.
  993.  
  994. When printing a file that contains a Ctrl-Z character, DOS will "close" the
  995. printer as soon as it sees the Ctrl-Z, and when subsequent characters are sent
  996. to the printer, DOS reports a printer error and Kermit reports "Printer error,
  997. discard or retry?".
  998.  
  999. The Print Screen and Shift-PrintScreen keys are never seen by Kermit.  They
  1000. are intercepted and acted upon by the BIOS.  Thus Kermit has no control over
  1001. the format of the printed output.  For example, a formfeed is not added to the
  1002. end to force a page eject.  If you want to print the current screen with a
  1003. formfeed at the end, use the following procedure:
  1004.  
  1005.   SET DUMP PRN    ; Specify that screen dumps go to the printer
  1006.  
  1007. and then use the \Kdump keyboard verb to accomplish the screen dump.  This
  1008. verb is assigned by default to the keypad Ctrl-End key, but you can assign it
  1009. to another key of your choice (but not Print Screen), for example:
  1010.  
  1011.   SET KEY \315 \Kdump  ; Assign screen dump to F1
  1012.  
  1013. (Shift-)Printscreen can cause the PC to hang if there is no attached printer.
  1014. This is a BIOS feature, Kermit never receives the command.  If this happens
  1015. during terminal emulation, try pressing Alt-= (hold down Alt and press the "="
  1016. key) several times to reset the terminal emulator.
  1017.  
  1018. Serial printers are not well supported by DOS, and since Kermit does all its
  1019. printing through DOS, Kermit's printing features might not work well with
  1020. serial printers.  To use a serial printer effectively, you must have a driver
  1021. for it that takes care of flow control, such as MSPSPD, available on the
  1022. MS-DOS Kermit Utilities and Technical Documentation diskette.
  1023.  
  1024. Transparent printing starts when the host sends the sequence ESC [ 4 i and
  1025. stops when the host sends ESC [ 5 i.  All characters, including escape
  1026. sequences, that arrive at the port are passed directly to the printer without
  1027. translation (but the parity bit is stripped if Kermit's parity is not NONE).
  1028. If character translation is desired, or it is desired not pass screen-control
  1029. escape sequences to the printer, use Autoprint rather than Transparent print
  1030. (ESC [ 0 i, ESC [ ? 4 i, ESC [ ? 5 i).    In that case, characters are translated
  1031. to the current IBM code page.  If your printer doesn't support your IBM code
  1032. page, you need an external utility to translate from the PC code page to the
  1033. printer's character set.  You can use SET PRINTER xxxx to capture Transparent
  1034. print or Autoprint data into a file.
  1035.  
  1036. INTERNATIONAL CHARACTER SETS
  1037.  
  1038. MS-DOS Kermit does not directly support Cyrillic terminal sets; that is, you
  1039. can't set your TERMINAL CHARACTER-SET to a Cyrillic set.  However, you can
  1040. still have a Cyrillic terminal session if you have a Cyrillic code page loaded
  1041. and you have issued the appropriate collection of SET KEY and SET TRANSLATE
  1042. INPUT commands (see the CYRILLIC directory on the distribution diskette).
  1043.  
  1044. MS-DOS Kermit does not support Japanese Kanji character-set translation during
  1045. terminal emulation.  However, version 3.13 does support the Kanji video mode
  1046. used on IBM-compatible DOS/V PCs, which allows Kanji terminal emulation if
  1047. the remote character set happens to be Shift-JIS (CP982).
  1048.  
  1049. Character-set translation during terminal emulation is done between the remote
  1050. TERMINAL CHARACTER-SET and the PC's current code page. During file transfer,
  1051. it's between the TRANSFER CHARACTER-SET and the PC's code page.  At startup,
  1052. MS-DOS Kermit asks DOS to report the current code page, and it sets your FILE
  1053. CHARACTER-SET and your TERMINAL CODE-PAGE to this value.  But DOS often lies
  1054. about the code page, so in most cases when your actual code page is anything
  1055. but 437 (or maybe 850), you, yourself, will have to tell MS-DOS Kermit what
  1056. your code page *really* is, using the following two commands:
  1057.  
  1058.   SET TERMINAL CODE-PAGE CPnnn ; Your actual current code page.
  1059.   SET FILE CHARACTER-SET CPnnn ; The code page for incoming text files.
  1060.  
  1061. The two would normally be the same, but MS-DOS Kermit lets you set them
  1062. differently if you want to, for example if you have a Hebrew code page loaded
  1063. for display purposes, but you want to download a Russian file that you will
  1064. display later, after loading a Cyrillic code page.
  1065.  
  1066. MS-DOS Kermit does not allow all possible combinations of FILE and TRANSFER
  1067. character sets.     The Hebrew code page (CP862) forces the Hebrew transfer
  1068. character set, and vice-versa.    Similarly for Cyrillic and Latin-2, etc.
  1069. Latin-1, however, can be used with many code pages: 437, 850, 861, 863, 865.
  1070.  
  1071. Some of the ISO 2022 or DEC-specific character-set designation escape
  1072. sequences, which *do* work correctly, nevertheless fail to have an effect on
  1073. the character-set field of the SHOW TERMINAL display.
  1074.  
  1075. LOG SESSION records characters that arrive at the serial port, before
  1076. translation by either Kermit's built-in terminal character set translation
  1077. tables or by user-specified SET TRANSLATION INPUT commands.  This allows
  1078. REPLAY to work correctly but it prevents special characters from being logged
  1079. after translation to the PC's own character set.  Screen dump (Ctrl-End or
  1080. Ctrl-]F) and autoprint, however, record the translated characters.
  1081.  
  1082. SET TERMINAL CHARACTER SET is effective only for text screens, not for
  1083. graphics screens.  This is because the fonts for all the special characters
  1084. have not been designed yet (and may never be, and even if they are, they would
  1085. require a lot of memory).
  1086.  
  1087. International characters in macro names are not case independent.
  1088.  
  1089. Case-independent string matching operations (e.g. SET INPUT CASE IGNORE,
  1090. IF EQUAL xxx yyy) won't necessarily work with international characters.
  1091.  
  1092. COMMAND PROCESSING
  1093.  
  1094. When a command field begins with the @ (at-sign) character, the following
  1095. characters are interpreted as a filename that contains the rest of the
  1096. command.  If you need to type a command field that actually starts with @, or
  1097. respond to an ASK or ASKQ query with text that starts with an atsign, you have
  1098. to encode the atsign as \64 or \{64}.
  1099.  
  1100. \B in an OUTPUT command tells Kermit to send a BREAK.  \L Tells Kermit to
  1101. send a Long BREAK.  If you need to output \B or \L literally, use two OUTPUT
  1102. statements, e.g.:
  1103.  
  1104.   define xbreak pause 1, output +++, pause 1, output AT\92, output B, -
  1105.     pause 1, output ATO\13, connect
  1106.   set key <key-of-your-choice> {\Kxbreak}
  1107.  
  1108. Notice that the backslash itself is written as "\92" to output it literally.
  1109.  
  1110. Certain commands, such as RUN, DIRECTORY, TYPE, etc, invoke COMMAND.COM
  1111. "underneath" Kermit, and COMMAND.COM might, in turn, invoke other programs.
  1112. If you get the message "Can't run program" in response to such a command, it
  1113. usually means there is not enough memory.  But you should also check your
  1114. SHELL environment variable.
  1115.  
  1116. If you include the word STAY anywhere on the Kermit command line, e.g.:
  1117.  
  1118.   kermit echo stay
  1119.  
  1120. it is interpreted as a STAY command.
  1121.  
  1122. A command file that contains lines or commands too long for DOS's line buffer
  1123. (usually 128 characters) can hang your PC: a DOS problem, not a Kermit problem.
  1124.  
  1125. Commands in command files can be continued by including "-" as the last
  1126. character on the line, but NOT if the line ends with a trailing comment.  In
  1127. other words, you can't have a trailing comment on a continued line. If you
  1128. need to end a line with a dash, but the dash is part of the command rather
  1129. than a continuation symbol, use \45 instead or add a trailing comment.
  1130.  
  1131. Trailing comments can be used only in command files.  All text starting with
  1132. the first semicolon through the end of line is ignored.     If you need to include
  1133. an actual semicolon in a command, precede it with a backslash (\;).
  1134.  
  1135. The name and password that you specify in SET SERVER LOGIN must be matched
  1136. exactly by the ones in REMOTE LOGIN.  Case matters.  If you need to include
  1137. spaces within the username, password, or account field of the REMOTE LOGIN or
  1138. SET SERVER LOGIN commands, surround the field with {braces}.
  1139.  
  1140. DISABLE ALL is not equivalent to all the other DISABLE commands given
  1141. separately.  For example, DISABLE DELETE restricts REMOTE DELETE commands from
  1142. the client to working only in the MS-DOS Kermit server's current directory,
  1143. while DISABLE ALL prevents all types of modifications to the PC's file system,
  1144. including file deletion and creation.
  1145.  
  1146. KEY MACROS
  1147.  
  1148. Key macros are executed while in CONNECT mode. If you assign the \Khangup verb
  1149. to a key, Kermit remains in CONNECT mode after the hangup takes place.  On a
  1150. serial dialup connection, Kermit turns off the DTR signal, and you should see
  1151. a confirmation message from the modem, such as NO CARRIER, on your screen.  On
  1152. a TCP/IP network connection, however, Kermit does indeed drop the connection,
  1153. but since Kermit is still in CONNECT mode, it is immediately reestablished.
  1154. If you want to terminate a network session by pressing a key, use a method
  1155. that leaves CONNECT mode.  You can do this by defining a macro to hang up, and
  1156. then assigning execution of the macro to the key, e.g. Alt-d:
  1157.  
  1158.   define xxx hangup
  1159.   set key \2336 {\Kxxx}
  1160.  
  1161. This causes Kermit to return from CONNECT mode and execute the macro without
  1162. returning to CONNECT mode.  This technique works for both serial and network
  1163. connections.
  1164.  
  1165. To assign several verbs to a single key, use braces as in this example:
  1166.  
  1167.   set key \315 {\{Kgold}\{KdecF13}}
  1168.  
  1169. or this:
  1170.  
  1171.   set key \315 {\{Kfoo}\{Kdump}\{Kbar}}
  1172.  
  1173. in which "foo" and "bar" are macro names, and \Kdump is Kermit's screen-dump
  1174. verb.
  1175.  
  1176. FILE TRANSFER
  1177.  
  1178. When using modems that do data compression, be sure to (a) use hardware flow
  1179. control (SET FLOW RTS/CTS), and (b) set your serial port speed higher
  1180. (preferably at least 4 times higher) than the modem's connection speed; for
  1181. example, use SET SPEED 57600 for 14400 bps modems.
  1182.  
  1183. The efficiency reported at the end of a file transfer is relative to the
  1184. serial port speed.  This can be confusing and/or misleading when using a modem
  1185. whose connection speed to the other modem is different from the serial port
  1186. speed, especially when the modems are also doing compression.
  1187.  
  1188. At present, there is no way to disable the "dynamic packet length" feature.
  1189.  
  1190. SET EOF CTRL-Z, when used with text files that actually contain Ctrl-Zs, might
  1191. result in gaps or truncation in the vicinity of the Ctrl-Z.  This is a DOS
  1192. "feature".
  1193.  
  1194. When using Kermit through a terminal server (particularly those that execute
  1195. the TCP/IP Telnet protocol), or directly through a SET PORT TCP connection, it
  1196. is sometimes necessary to SET PARITY SPACE for file transfer. It is sometimes
  1197. impossible to use very long packets with terminal servers.  Try SET RECEIVE
  1198. PACKET-LENGTH 80, working up or down to the longest length that works.
  1199.  
  1200. REMOTE TYPE and other REMOTE commands resulting in an error "Unable to open
  1201. CON": insufficient FILES= in CONFIG.SYS.  FILES= should be at least 20.
  1202.  
  1203. The MS-DOS Kermit command REMOTE SET BLOCK-CHECK will generally have no effect
  1204. upon a remote server unless the SET BLOCK-CHECK is also given locally to
  1205. MS-DOS Kermit.
  1206.  
  1207. The host prompt for TRANSMIT is a single character (SET TRANSMIT PROMPT).  It
  1208. is not possible to specify a multi-character or varying transmit-prompt.
  1209.  
  1210. SCRIPT PROGRAMMING
  1211.  
  1212. The terminal emulator is not active during execution of script commands such
  1213. as INPUT and OUTPUT.  This means:
  1214.  
  1215.  1. If the host sends the escape sequence that tells the terminal to identify
  1216.     itself, it is ignored.  You have to put the appropriate INPUT and OUTPUT
  1217.     commands in your script program.  Here is a macro to set your terminal type
  1218.     in Kermit and to set up the appropriate response string as well as terminal
  1219.     type string:
  1220.  
  1221.     def term if not def \%1 def \%1 vt320,-
  1222.      set term type \%1,-
  1223.      if error end 1,-
  1224.      assign _ttype \%1,-
  1225.      if eq \%1 vt320 assi _tid \27[\{63}63\;1\;2\;4\;8\;9\;15c,-
  1226.      if eq \%1 vt220 assi _tid \27[\{63}\62\;1\;2\;4\;8\;9\;15c,-
  1227.      if eq \%1 vt102 assi _tid \27[\63\;6c,-
  1228.      if eq \%1 vt100 assi _tid \27[\63\;1c,-
  1229.      if eq \%1 vt52  assi _tid \27/Z
  1230.  
  1231.     Whenever you switch terminal emulations, do "term vt102" instead of "set
  1232.     term type vt102" (substitute your preferred terminal type).     In any script
  1233.     that responds to ESC Z (or whatever), have it "output \m(_tid)", and any
  1234.     prompt that asks for your terminal type you can "output \m(_ttype)".  And
  1235.     be sure to execute a "term" command in your MSKERMIT.INI file, so your
  1236.     initial terminal type is set.
  1237.  
  1238.  2. A host-generated escape to put the terminal in Tektronix mode has no
  1239.     effect.  Put explicit SET TERMINAL TYPE TEK commands in the appropriate
  1240.     places in your script program.
  1241.  
  1242.  3. Screen formatting escape sequences have no effect.    If you have SET INPUT
  1243.     ECHO ON, they are simply displayed as-is.
  1244.  
  1245. If the remote host is sending ANSI (VTxxx) escape sequences during execution of
  1246. the script program, then users of IBM PCs can use the ANSI.SYS or similar
  1247. console driver to interpret the escape sequences.  This is particularly useful
  1248. when running a script that logs in to a full-screen system, such as an IBM
  1249. mainframe through a protocol converter.     But beware: ANSI.SYS is not totally
  1250. compatible with Kermit's VT emulator, and it may produce unwanted side effects,
  1251. the most annoying of which is suddenly popping your PC into 40-column mode!  If
  1252. you experience difficulties with your screen display while using Kermit script
  1253. programs, use SET INPUT ECHO OFF.  Or remove ANSI.SYS from your CONFIG.SYS file
  1254. and reboot.
  1255.  
  1256. PAUSE, WAIT, and similar commands also cause port input to be echoed to the
  1257. screen if INPUT ECHO is ON.  Use SET INPUT ECHO OFF to defeat this effect.
  1258.  
  1259. If the REINPUT command fails to find the requested text in the INPUT command
  1260. buffer, it will wait (up to the timeout interval) for more characters to
  1261. arrive from the communication channel.
  1262.  
  1263. INPUT / REINPUT combinations will not work if the INPUT buffer is smaller than
  1264. the amount of text that separates the INPUT text from the REINPUT text.  You
  1265. can increase the size of the INPUT buffer by including the desired size in
  1266. your KERMIT=INPUT <size> environment variable.  The default size is 256 bytes.
  1267.  
  1268. Script programming hint: To test whether a readable floppy disk is available
  1269. in drive A:, do this:
  1270.  
  1271.   SPACE A:
  1272.   IF FAILURE ECHO No diskette in drive A:.
  1273.  
  1274. The ON_EXIT macro is intended only for automatic execution when MS-DOS Kermit
  1275. exits.  It only works once, to prevent recursion (as would happen, for
  1276. example, if you put an EXIT command in your ON_EXIT definition).
  1277.  
  1278. MEMORY MANAGEMENT
  1279.  
  1280. MS-DOS Kermit, like any DOS or Windows program, is likely to misbehave if your
  1281. PC memory is insufficient or is incorrectly configured.  MS-DOS Kermit runs in
  1282. conventional memory (the first 640K) of your PC.  It occupies about 280K
  1283. initially, and then allocates additional memory as needed for rollback
  1284. screens, file-transfer packet buffers, etc.  Kermit uses additional memory to
  1285. execute certain commands such as TYPE and DIRECTORY, for which it invokes a
  1286. second copy of COMMAND.COM (appoximately 30K) in conventional memory, as well
  1287. as RUN, which can invoke not only COMMAND.COM, but an additional program to be
  1288. run by COMMAND.COM, for example "run edit".  If there is insufficient memory,
  1289. these operations will not work; thus it is always best to have as much free
  1290. conventional memory as possible.
  1291.  
  1292. Memory for file-transfer packets is allocated at the time the transfer begins,
  1293. based on the current sliding-window size (SET WINDOW) and packet-length (SET
  1294. RECEIVE PACKET-LENGTH), and is deallocated when the transfer ends.  So SHOW
  1295. MEMORY won't reveal the effect of the packet buffers.  If insufficient memory
  1296. is available for the requested window size and packet length, MS-DOS Kermit
  1297. automatically reduces its RECEIVE PACKET-LENGTH.  Conventional memory is
  1298. always used for packet buffers. Thus packet buffers and RUN/PUSH/TYPE/
  1299. DIRECTORY commands "time-share" the same conventional memory.
  1300.  
  1301. Memory for graphics screens is taken from your video display adapter.  Storage
  1302. of graphics images in the video adapter's on-board memory allows rapid
  1303. switching between text and graphics screens provided (a) your video has
  1304. sufficient memory, (b) the memory is not "mapped away", and (c) you are not
  1305. running Kermit under Windows.
  1306.  
  1307. Memory for rollback screens is allocated when the CONNECT command is first
  1308. given, i.e. when Kermit first displays its terminal emulation window, and
  1309. remains allocated until you EXIT from Kermit.  This can be demonstrated by
  1310. starting Kermit, giving the command SHOW MEMORY, then giving the CONNECT
  1311. command, then escaping back (Alt-x), and then giving the SHOW MEMORY command
  1312. again -- see how available memory has shrunk.  Approximately 4K is required
  1313. per 24x80 rollback screen (more for bigger screens).  The default number of
  1314. rollback screens is 10, but the number can be set to practically any value at
  1315. all (0 or greater) by giving the following command to DOS before you start
  1316. Kermit (interactively, or in your AUTOEXEC.BAT file):
  1317.  
  1318.   SET KERMIT=ROLLBACK 40
  1319.  
  1320. The smaller the number, the less memory required; the bigger, the more memory.
  1321. In version 3.13, you can also give the new command:
  1322.  
  1323.   SET ROLLBACK <number-of-screens>
  1324.  
  1325. at the MS-Kermit prompt at any time, and the rollback memory will be adjusted
  1326. when you next CONNECT.
  1327.  
  1328. A large number of rollback screens can crowd out other possibilities, like the
  1329. ability to use Kermit's RUN, PUSH, TYPE, DIRECTORY, and other commands that
  1330. run inferior processes.  Version 3.13 of MS-DOS Kermit lets you store your
  1331. rollback screens in Expanded Memory (EMS) if you have more than 1MB of
  1332. physical memory and you have an expanded memory manager for it like
  1333. Quarterdeck QEMM or EMM386 and HIMEM that come with DOS 5.0 and Windows 3.1.
  1334.  
  1335. Using expanded memory for rollback screens frees 40K of conventional memory if
  1336. you are using the default number (10) of rollback screens, and it also allows
  1337. you to have a much larger number of rollback screens.  The following steps are
  1338. required to keep your rollback screens in expanded memory:
  1339.  
  1340. 1. Make sure the desired amount of expanded (EMS) (not "extended", or XMS)
  1341.    memory is available.     The DOS MEM command will tell you this.
  1342.  
  1343. 2. In your AUTOEXEC.BAT file, set the desired number of Kermit rollback
  1344.    screens.  For example, for 250 screens (requiring about 1 megabyte):
  1345.  
  1346.       SET KERMIT=ROLLBACK 250
  1347.  
  1348. 3. Give the following command to MS-DOS Kermit:
  1349.  
  1350.       SET TERMINAL EXPANDED-MEMORY ON
  1351.  
  1352.    If this command fails, Kermit prints an appropriate error message.
  1353.  
  1354. Now start a Kermit session, scroll some text off the screen during CONNECT
  1355. mode, and check the operation of the PageUp/PageDown keys.  If they work,
  1356. you're done.  And as an added benefit, graphics screens will also be stored
  1357. in expanded memory, allowing you to switch between graphics and text screens
  1358. (Alt-minus), even under Windows, without losing the graphics screen.
  1359.  
  1360. If it doesn't work, then welcome to the bewildering world of DOS memory
  1361. management.  The most common symptom of a bad memory configuration is that
  1362. your PC will freeze the first time Kermit tries to scroll a line off the
  1363. screen or the first time it tries to clear the screen.    Now you should begin
  1364. looking at your CONFIG.SYS file.
  1365.  
  1366. First, here is a straightforward DOS 5.0 CONFIG.SYS configuration that sets up
  1367. a PC with 8MB of memory to have 6MB of expanded memory:
  1368.  
  1369.   DEVICE=C:\DOS\HIMEM.SYS
  1370.   DEVICE=C:\DOS\EMM386.EXE 6144 RAM
  1371.   DOS=HIGH,UMB
  1372.   DEVICEHIGH=C:\DOS\ANSI.SYS
  1373.  
  1374. HIMEM.SYS must be loaded first and then EMM386.     With memory management now
  1375. active, DOS is told to use "high memory" (don't ask) and "upper memory blocks"
  1376. (UMB, the space between 640K and 1MB) and then ANSI.SYS is loaded into the
  1377. upper memory area rather than conventional memory.
  1378.  
  1379. EMM386 is asked to take care of 6144K of expanded (EMS) (not extended, XMS)
  1380. memory, and the RAM switch means that it also should manage the upper memory
  1381. blocks.     This configuration works on a PC that has 8MB of memory (6144K = 6MB
  1382. = 1024 x 6), leaving 1MB of extended memory for any process that might need
  1383. it.  If you have less memory than that, adjust as appropriate.
  1384.  
  1385. If you are using RAMDRIVE.SYS, give it the /A switch to use expAnded memory,
  1386. rather than the /E switch for extEnded memory, e.g.:
  1387.  
  1388.   DEVICEHIGH=C:\WINDOWS\RAMDRIVE.SYS 1024 512 64 /A
  1389.  
  1390. After making these changes to CONFIG.SYS, reboot your PC and give a DOS MEM
  1391. command to check that the needed amount of Expanded (EMS) memory is available.
  1392.  
  1393. Now run Kermit and check the expanded-memory rollback feature. Also tell
  1394. Kermit to SHOW MEMORY to see how much conventional memory remains after
  1395. starting Kermit.  If it's not enough for your purposes, look at your
  1396. CONFIG.SYS and AUTOEXEC.BAT files to see if there are any other drivers or
  1397. TSRs that can be removed or loaded high.  Here's another hint: If you access a
  1398. CD-ROM drive via Microsoft CD Extensions, include the /E switch (Expanded)
  1399. when you start it up:
  1400.  
  1401.   C:\BIN\MSCDEX /E /D:MSCD000 /M:10
  1402.  
  1403. In a more complicated configuration, suppose you have a network interface
  1404. board that uses a certain segment of memory (at, for example, segment address
  1405. CC00) which conflicts with DOS's memory management (note: addresses are
  1406. usually written in hexadecimal).  In that case, you have to tell EMM386 to
  1407. "exclude" this segment from its memory managing:
  1408.  
  1409.   DEVICE=C:\DOS\EMM386.EXE 6144 x=cc00-cc7f RAM
  1410.  
  1411. These segment address numbers are obtained from the technical manual for your
  1412. network interface board (or, perhaps more likely, from the board vendor's
  1413. technical support phone number).  Additional "exclude" clauses might be
  1414. needed for other boards or adapters.
  1415.  
  1416. For debugging, get additional information about your PC's memory layout using
  1417. the DOS MEM/C and MEM/P commands, the MSD program that comes with Microsoft
  1418. Windows, or the MFT (Manifest) program that comes with Quarterdeck QEMM.
  1419.  
  1420. If all else fails, tell Kermit to SET TERMINAL EXPANDED-MEMORY OFF (this is
  1421. the default anyway).  NOTE: whenever you switch Kermit's expanded memory
  1422. status from OFF to ON or vice versa, your previous rollback screens are lost.
  1423.  
  1424. Use caution with QEMM v6 "Stealth (ST:M) optimization".     This prevents Kermit
  1425. from accessing your video board's BIOS memory and finding the video board's
  1426. signature, and therefore from determining the appropriate method for switching
  1427. between 80 and 132 columns.  Most boards have a signature string within the
  1428. first 200h bytes of the video BIOS and excluding that much from stealth mode
  1429. should be sufficient to preserve the identification information.
  1430.  
  1431. HARDWARE-RELATED PROBLEMS
  1432.  
  1433. Many of the newer low-cost, high-speed clone PCs suffer from noisy buses,
  1434. interrupt or address conflicts, and other maladies not seen on earlier, more
  1435. expensive (but slower) models.
  1436.  
  1437. INTERACTIONS WITH DOS
  1438.  
  1439. A REMOTE HOST or similar command sent to an MS-DOS Kermit server can invoke the
  1440. DOS critical error handler, which issues its familiar "Abort, Ignore, Retry?"
  1441. message on its real screen, and is waiting for a response from its own real
  1442. keyboard, and so the server will no longer respond.  Kermit attempts to catch
  1443. many of these errors before DOS learns learns about them, but some cannot be
  1444. avoided (like disk i/o errors).
  1445.  
  1446. Similarly, a REMOTE DIRECTORY command sent to an MS-DOS Kermit server can
  1447. cause the server to hang if its default directory command pauses after each
  1448. screen (DIRCMD=/P).  In fact, the server will hang any time a subprocess
  1449. invoked by any REMOTE command (watch out, in particular, for REMOTE HOST)
  1450. requests keyboard input.
  1451.  
  1452. MS-DOS Kermit uses the program named in the DOS Environment command line
  1453. starting as SHELL= as a replacement for COMMAND.COM.  Such a line is seen by
  1454. typing SET at the DOS prompt, and it is not associated with the SHELL= line
  1455. appearing in file CONFIG.SYS.
  1456.  
  1457. Interaction between MS-DOS Kermit and various terminate-and-stay-resident
  1458. (TSR) programs is necessarily unpredictable.  Console, mouse, clock, or
  1459. graphics drivers might interfere with file transfer, e.g. the CMOSCLK.SYS
  1460. driver on the PS/2 model 55SX.  If TSR programs are interfering with Kermit
  1461. (by taking over the timer or serial port interrupts), you should remove them
  1462. all from your AUTOEXEC.BAT or CONFIG.SYS files, and then put them back one by
  1463. one until you have identified the culprit.
  1464.  
  1465. Use caution when invoking certain TSR programs while PUSHed from Kermit
  1466. (e.g. using the PRINT command for the first time), as not all of these
  1467. programs observe proper etiquette for allocating and freeing memory, and the
  1468. TSRs will be loaded above Kermit into the middle of memory where they may
  1469. prevent large programs from loading later.
  1470.  
  1471. NETWORKS
  1472.  
  1473. When communicating across certain network pathways, the longest burst of
  1474. information tolerated from the PC can be rather short. For example, the LAT
  1475. path with SET PORT DECNET (PATHWORKS) has a limit of 256 bytes and the SET
  1476. PORT TES path has a limit of 512 bytes in a burst (or less, depending on the
  1477. TES release).  Longer bursts can cause the network software on one end or the
  1478. other to drop the connection.  This is most likely in the following situations:
  1479.  
  1480.  1. During file transfer, when sending files from the PC using long packets
  1481.     and/or sliding windows.  The total size of the packets in the window
  1482.     (packet length times the number of window slots) must be less than the
  1483.     burst limit for the network.
  1484.  
  1485.  2. During VT320 terminal emulation, if the host application (such as VMS
  1486.     or UNIX WordPerfect) sends a Terminal State or Color Palette Request
  1487.     escape sequence, DECRQTSR, "ESC [ 2 ; 2 $ u".  The response to this
  1488.     request is more than 200 characters long and has been known to break
  1489.     LAT and TES connections.
  1490.  
  1491. This is not a Kermit problem, but rather a limitation (or bug) in the
  1492. underlying networking method.  Workarounds include:
  1493.  
  1494.  1. If you have a DECnet LAT connection, make a DECnet CTERM connection
  1495.     instead (i.e. unload your LAT TSR and load the CTERM TSR instead).
  1496.  
  1497.  2. Enable RTS/CTS flow control between MS-DOS Kermit and the device it is
  1498.     most immediately connected to, if possible.     Otherwise, enable Xon/Xoff
  1499.     flow control in MS-DOS Kermit and at the host on the far end (e.g. tell
  1500.     VMS to SET TERM/HOSTSYNC/TTSYNC).
  1501.  
  1502.  3. Use a different networking method, e.g. TCP/IP instead of DECnet.
  1503.  
  1504. Sending BREAK over network connections via SET PORT BIOS1 + Int 14h
  1505. interceptor may or may not work, depending upon the actual network and drivers
  1506. in use.     Kermit uses the BREAK facility if the driver and network support it.
  1507.  
  1508. Symptom: PC no longer works after installing a network board.  Diagnosis: a
  1509. 16-bit VGA display adapter is running in 16-bit mode.  Cure: Jumper it back to
  1510. 8 bits and all should start working again.
  1511.  
  1512. PC-NFS prevents applications programs such as Kermit from creating a file in
  1513. the root directory of a PC-NFS disk drive.  When the applications program asks
  1514. if a particular file exists in the root, PC-NFS always responds with "volume
  1515. label present", whether or not the actual file is present.
  1516.  
  1517. SET PORT TELAPI performance is good with version 4 of Novell's LAN WorkPlace
  1518. for DOS but it is poor with version 3.5 because that older version sends each
  1519. Kermit byte in an individual packet.  Because the TELAPI interface lacks the
  1520. ability to resolve Internet, names you can use the small Kermit macro below to
  1521. invoke Novell's program TSU to resolve names and set up a session:
  1522.  
  1523.   define telapi run tsu -o \%1 k1,run tsu -a k1 1,set port bios1
  1524.  
  1525. Use as Kermit command "telapi my.favorite.host" followed by CONNECT.  This
  1526. tells TSU to "o"pen a connection to the host named in Kermit variable \%1 and
  1527. give the session a TSU tag of "k1".  Then run TSU again and "a"ttach this
  1528. session to COM"1" meaning Kermit's BIOS1 port.    Four sessions can be started
  1529. by choosing different tags and port numbers, though this macro does not make
  1530. the changes.  An alternative to SET PORT BIOS1 is SET PORT 3COM for much
  1531. faster throughput; an end-of-session signal is not available with this method
  1532. so the user must exit manually.
  1533.  
  1534. You can't run LAN Workplace for DOS (LWP) and make SET PORT TCP/IP connections
  1535. with Kermit at the same time, because only one protocol stack of a given kind
  1536. can run over a single network board.  If you want to make a TCP/IP connection
  1537. with Kermit when LWP is loaded you can either (a) use SET PORT TELAPI rather
  1538. than SET PORT TCP/IP (slower and less flexible), or (b) unload LWP from the
  1539. DOS prompt by typing TCPIP UNLOAD, and then start Kermit.
  1540.  
  1541. The Interconnections TES product, which Kermit fully supports, has a fancy
  1542. menu that pops up if you type the TES "hot key", Alt-LeftShift-T.  Reportedly,
  1543. this pop-up menu interferes with the LK250 driver that is distributed with
  1544. Kermit (it works fine with regular IBM keyboards).  The LK250 driver uses a
  1545. special interrupt, and the TES menu program might not properly chain this
  1546. interrupt.  The workaround is to use TES's text-mode menu, which Kermit brings
  1547. up if you type Alt-Home during terminal emulation.  Version 3.13 of MS-DOS
  1548. Kermit transparently supports both older and the latest TES products.
  1549.  
  1550. For DECnet/DOS (PATHWORKS) LAT connections, it is often necessary to tell the
  1551. LAT control program on the PC to reserve enough memory for all of the local LAT
  1552. host names.  By default, space for 16 names is allocated.  Increase your LAT
  1553. control program's memory allocation if you have more than 16 hosts on your
  1554. DECnet network.     Also, remove ALL permanent LAT names from your database and
  1555. let the network provide them (this can mean waiting a minute or two for all
  1556. broadcasts to be heard).
  1557.  
  1558. Reportedly, when making NETBIOS or 3COM(BAPI) connections under Windows,
  1559. characters from a DOS window can show up in the Kermit window.  Reportedly,
  1560. this can be fixed by setting Kermit's foreground and background priority to
  1561. 150 and setting the priority of the other DOS applications to 5000.
  1562.  
  1563. NETBIOS STATION-TO-STATION CONNECTIONS
  1564.  
  1565. The procedure for establishing a NETBIOS PC-to-PC connection is as follows:
  1566.  
  1567.  1. On the first PC:
  1568.       SET NETBIOS NAME <xxx>
  1569.       SET PORT NETBIOS
  1570.       SERVER
  1571.  
  1572.  2. On the second PC:
  1573.       SET PORT NETBIOS <xxx>.K
  1574.  
  1575. (<xxx> is any name you choose, up to 14 characters long.)
  1576.  
  1577. Now you can initiate file transfer and other Kermit protocol operations from
  1578. the second PC.    If you want the two PCs to "chat" in terminal mode, send a
  1579. FINISH command from the second PC (or type Ctrl-C on the first, server, PC),
  1580. and then give the following commands to both PCs:
  1581.  
  1582.   SET TERMINAL NEWLINE ON
  1583.   SET LOCAL-ECHO ON
  1584.   CONNECT
  1585.  
  1586.  
  1587. TCP/IP SUPPORT
  1588.  
  1589. As of version 3.11, MS-DOS Kermit contains built-in TCP/IP and TELNET protocol
  1590. support.  This allows a PC equipped with an Ethernet or other network board
  1591. that is connected to a TCP/IP network to communicate with any other node on
  1592. the network, without requiring any additional TCP/IP software on your PC.  You
  1593. need an external Ethernet-style (Class 1) packet driver for your network
  1594. interface board, or (as of version 3.12) a SLIP Packet Driver or a Novell ODI
  1595. driver, or (as of version 3.13) the Novell SLIP_PPP ODI driver.     You can also
  1596. use any of various "shims" to sit between Kermit and other kinds of board
  1597. drivers (e.g. NDIS) to make them look to Kermit like Ethernet packet drivers.
  1598.  
  1599. With ODI, Kermit's Telnet operates across Ethernet (many frame kinds), Token
  1600. Ring, Arcnet, and PCnet.  Kermit does not contain built-in network device
  1601. drivers.  Packet drivers are available from network interface manufacturers,
  1602. and via anonymous FTP from Columbia University, host watsun.cc.columbia.edu
  1603. [128.59.39.2], cd packet-drivers, get the READ.ME file, read it, and take it
  1604. from there.  These files, now called the Crynwr packet driver collection, are
  1605. also available from Columbia University via mail order.     ODI drivers are
  1606. available from makers of the LAN adapter and in some cases from Novell.     See
  1607. Novell archive "novlib" on CompuServe and on machines ftp.is.sandy.novell.com
  1608. [137.65.12.2] and mirrors such as netlab2.usu.edu [129.123.1.44] for Novell
  1609. supplied ODI drivers.
  1610.  
  1611. The TCP/IP code in this version of Kermit has been tested successfully with at
  1612. least the following boards and packet drivers (according to reports from
  1613. users):
  1614.  
  1615.   Ungermann-Bass PC/NIC board with Clarkson UBNICPC packet driver 9.1
  1616.   3COM 3C501 with Clarkson 3C501 packet driver 5.0.
  1617.   3COM 3C503 with Clarkson 3C503 packet driver 9.4.0.
  1618.   Western Digital WD8003E with Crynwr (not WD) WD8003E packet driver 9.7.0
  1619.   Cabletron 2000 and 3000 series DNI boards with CSIPD_E 1.0x and later packet
  1620.     drivers on unshielded twisted pair, thin Ethernet, and thick Ethernet,
  1621.     on both PC/AT and Microchannel buses.
  1622.   Micom-Racal NI5210 with NI5210 packet driver.
  1623.   AT&T EN100 with Clarkson AT&T packet driver.
  1624.   IBMTOKEN.COM 3C501 emulation packet driver 1.9 over various Token Ring 
  1625.     boards and drivers.
  1626.   DIS_PKT over NDIS for LAN Manager networks and NDIS-compliant boards
  1627.     including SD8003, 3C503, AT&T 10MB/sec thinwire
  1628.   Harvard ODIPKT over LSL, LANSUP, and IPXODI over Ethernet (but not
  1629.     Token Ring) 
  1630.   Novell NE2000 with Crynwr NE2000 packet driver (not the Novell MLID!)
  1631.  
  1632. Token Ring, Arcnet, and LocalTalk packet drivers are not supported, as they
  1633. are not Ethernet- or SLIP-class Packet drivers.
  1634.  
  1635. The performance of the 3C50x packet drivers is poor, but the operation seems
  1636. correct.  Suggestion from a 3COM 3C503 Ethernet board user: "When installing
  1637. the packet driver for 3Com 503 cards, one has to pay attention that the memory
  1638. option on the card is not disabled.  It was in my case, and the packet-driver
  1639. did not complain.  Since other drivers (e.g.  the DEC PATHWORKS driver) do not
  1640. require the memory enabled, the default is disabled."
  1641.  
  1642. Reportedly, the packet driver supplied by Western Digital with their WD8003E
  1643. and/or Elite network boards cannot be found by Kermit.    The Crynwr WD8003E
  1644. packet driver, however, works correctly with both the WD8003E and Elite boards.
  1645. Same comments apply to WD8003E.SYS shipped with PC-NFS.
  1646.  
  1647. To reconfigure a Novell network (NetWare 3.xx or earlier) for packet drivers
  1648. so Kermit and Novell software can be used concurrently, use software from
  1649. Brigham Young University, available via anonymous ftp from dcsprod.byu.edu.
  1650. For further information, read the Kermit Distribution file MSABYU.HLP.
  1651.  
  1652. An Ethernet-simulation packet driver "shim" is available for systems using the
  1653. NDIS (Network Driver Interface Specification) program.    NDIS is frequently
  1654. used with LAN Manager networks, including AT&T's StarGROUP network and DEC's
  1655. Pathworks for DOS.  The interface program is named DIS_PKT and originated with
  1656. FTP Software Inc.  Their program DIS_PKT.GUP is available by anonymous ftp to
  1657. vax.ftp.com, and a research version DIS_PKT9.ZIP is available from Utah State
  1658. University by anonymous ftp to netlab2.usu.edu.     Instructions for configuring
  1659. Lan Manager to include DIS_PKT are included with the program.  (Also available
  1660. from watsun.cc.columbia.edu, in the packet-drivers.new directory and on the
  1661. MS-DOS Kermit diskette.)
  1662.  
  1663. Here is a setup with which one user reports success in using MS-DOS Kermit's
  1664. built-in TCP/IP support with LAN Manager and a Novell NE2000 Ethernet board:
  1665.  
  1666. CONFIG.SYS
  1667. ---------------------------
  1668. SHELL=C:\COMMAND.COM /P /E:1024
  1669. DEVICE=C:\WINDOWS\HIMEM.SYS
  1670. DEVICE=C:\WINDOWS\EMM386.EXE noems I=B000-B7FF i=e000-efff
  1671. DOS=HIGH,UMB
  1672. COUNTRY=61,,C:\DOS\COUNTRY.SYS
  1673. BUFFERS=13
  1674. FILES=50
  1675. STACKS=0,0
  1676. LASTDRIVE=Z
  1677. DEVICEHIGH=C:\DOS\ANSI.SYS
  1678. DEVICEHIGH=C:\WINDOWS\MOUSE.SYS
  1679. DEVICEHIGH=C:\LANMAN\DRIVERS\PROTMAN\PROTMAN.DOS /i:C:\LANMAN
  1680. DEVICEHIGH=C:\LANMAN\DRIVERS\ETHERNET\NE2000\NE2000.DOS
  1681. DEVICEHIGH=C:\KERMIT\DIS_PKT9.DOS
  1682.  
  1683. PROTOCOL.INI
  1684. ----------------------------
  1685. [PROTMAN]
  1686.   DRIVERNAME = PROTMAN$
  1687.   DYNAMIC = YES
  1688.   PRIORITY = NETBEUI
  1689.  
  1690. [PKTDRV]
  1691. ; This section added for kermit
  1692.   DRIVERNAME = PKTDRV$
  1693.   BINDINGS = NE2000_NIF
  1694.   INTVEC = 0x65
  1695.  
  1696. [NETBEUI_XIF]
  1697.   DRIVERNAME = NETBEUI$
  1698.   SESSIONS = 8
  1699.   NCBS = 12
  1700.   BINDINGS = "NE2000_NIF"
  1701.   LANABASE = 0
  1702.  
  1703. [NE2000_NIF]
  1704. ; protocol.ini section for the Novell NE2000 Card
  1705.   IOBASE = 0x300
  1706.   INTERRUPT = 5
  1707.   DRIVERNAME = MS2000$
  1708.  
  1709. Kermit's TCP/IP support does not work over the Harvard ODIPKT driver on a Token
  1710. Ring network because it requires Kermit to use Token Ring rather than Ethernet
  1711. frames (but it does work with ODIPKT over Ethernet).  Version 3.12 and later
  1712. support ODI directly; ODIPKT is not necessary except when using Windows.
  1713.  
  1714. Direct use of ODI drivers permits Kermit's TCP/IP to run with several kinds of
  1715. Ethernet frames: DIX/Blue-Book/Ethernet_II, 802.2, 802.2 with SNAP, and 802.3,
  1716. as well as with Token Ring, Arcnet, and PCLan broadband.  No extra protocol
  1717. "shim" is needed, but you must have the ODI drivers which come from Novell or
  1718. from your network board vendor.
  1719.  
  1720. The ODI interface will be tried if a Packet Driver is not found, and it can be
  1721. selected in preference to a packet driver by the command:
  1722.  
  1723.    SET TCP/IP PACKET-DRIVER-INTERRUPT ODI
  1724.  
  1725. where "ODI" replaces the interrupt number of a Packet Driver.
  1726.  
  1727. For ODI, the file NET.CFG should have the lines "Protocol IP etc" similar to
  1728. the example below:
  1729.  
  1730.     # File NET.CFG, example
  1731.     PB buffers=10
  1732.     show dots=on
  1733.  
  1734.     Link Support
  1735.         buffers 6 1514
  1736.         MemPool 2048
  1737.  
  1738.     Link Driver SMCPLUS
  1739.         Port  280 20
  1740.         Mem   000CA000 2000/10
  1741.         Int   7
  1742.         frame Ethernet_II
  1743.         Protocol IPX    8137    Ethernet_II
  1744.         Protocol IP    0800    Ethernet_II
  1745.         Protocol ARP    0806    Ethernet_II
  1746.         Protocol RARP    8035    Ethernet_II
  1747.  
  1748. To make TCP/IP connections, Kermit requires three "protocols", IP, ARP, and
  1749. optionally RARP as shown above.     The frame kinds can be anything the board
  1750. will support: Ethernet, Token Ring, Arcnet, all IEEE 802.2-based frames etc.
  1751. ODI will complain if the frame type cannot support these protocols.  Arcnet
  1752. uses different TYPE values, D4 for IP, D5 for ARP, and D6 for RARP, rather
  1753. than 0800 etc, as per RFC-1201.
  1754.  
  1755. Which board Kermit (or IPX or other application) will use if two or more
  1756. boards are available?  Although one would think the board could be selected by
  1757. placing the Protocol IP, etc, lines under the desired Link Driver section,
  1758. such is not really the case; those lines tell LSL the frame kind to associate
  1759. with the protocol (say IP) but not the board.  The frame lines are associated
  1760. with particular boards, however.  The default method for finding a board is
  1761. that the application chooses "the first board" offering a suitable frame,
  1762. regardless of whether or not the Protocol IP, etc, lines are present for that
  1763. board.  "First" refers not to the contents of NET.CFG but to the order in
  1764. which board drivers are loaded at DOS level.  So the indented protocol lines
  1765. tell ODI which frame a protocol needs, and a TYPE to use for recognizing
  1766. packets, but the lines do not identify a particular board.
  1767.  
  1768. To target a particular board a separate main section is used in NET.CFG.  The
  1769. section starts with the word Protocol against the left margin and has Bind
  1770. indented beneath it, like this -
  1771.  
  1772.     Protocol Kermit            Identifies Kermit section of NET.CFG
  1773.         bind SMCPLUS        Bind to SMCPLUS board driver
  1774.  
  1775. When a board name is used more than once then the alternative form is to use
  1776. a board number in place of the name:
  1777.  
  1778.     Protocol Kermit
  1779.         bind #2            bind to the board loaded second
  1780.  
  1781. Kermit considers the text in these sections to be case-insensitive.  The
  1782. #<digit> construction must not have a separation between the number sign (#)
  1783. and the digit.    The #<digit> case is normally used when two or more boards
  1784. share the same driver and thus are not distinguishable by name alone.
  1785.  
  1786. A sample STARTNET.BAT file might look like this:
  1787.  
  1788. @echo off            run quietly
  1789. c:\lsl >nul            LSL is always loaded before boards
  1790. c:\smcplus.com >nul        SMC/WD8003E board, the first
  1791. c:\exos.com >nul        EXOS-205T board, the second
  1792. rem c:\odinsup            Odinsup can coexist with Kermit
  1793. rem c:\odipkt 0 96        Odipkt can coexist with Kermit
  1794. c:\ipxodi >nul            IPX is always loaded after boards
  1795. rem echo Starting network...    may be needed to help some drivers
  1796. c:\bnetx ps=my-preferred-server > nul
  1797. rem (Packet Burst mode)    NETX loads after IPX
  1798. @echo on
  1799.  
  1800. If both EXOS and SMCPLUS boards offer frame Ethernet_II Kermit will choose the
  1801. first loaded board, SMCPLUS, in the absence of a "bind" command.  Putting the
  1802. section "Protocol Kermit, bind <board name or number>" anywhere in NET.CFG
  1803. selects a particular board for Kermit.    A complete NET.CFG file using two
  1804. boards is shown below and applies to both regular NetWare shells and the
  1805. newer VLM shells (but with minor changes to the no-board parts of things).
  1806.  
  1807. # File NET.CFG, an example with two boards
  1808. PB buffers=10
  1809. show dots=on
  1810. # all main sections must start in column 1, indent local material.
  1811.  
  1812. # Protocol "IPX" is for Novell's IPXODI
  1813. Protocol IPX
  1814.     Bind #1
  1815.  
  1816. # Protocol "Kermit" is for MS-DOS Kermit
  1817. Protocol KERMIT
  1818.     Bind EXOS
  1819.  
  1820. Link Support
  1821.     buffers 6 1514
  1822.     MemPool 2048
  1823.  
  1824. Link Driver exos
  1825.     Port  310 20
  1826.     Mem   000D0000 400
  1827.     Int   5
  1828.     frame Ethernet_II
  1829.     Protocol IPX    8137    Ethernet_II
  1830.     Protocol IP    0800    Ethernet_II
  1831.     Protocol ARP    0806    Ethernet_II
  1832.     Protocol RARP    8035    Ethernet_II
  1833.  
  1834. Link Driver SMCPLUS
  1835.     Port  280 20
  1836.     Mem   000CA000 2000/10
  1837.     Int   7
  1838.     frame Ethernet_II
  1839.     frame Ethernet_Snap
  1840.     Protocol IPX    8137    Ethernet_II
  1841.     Protocol IP    0800    Ethernet_II
  1842.     Protocol ARP    0806    Ethernet_II
  1843.     Protocol RARP    8035    Ethernet_II
  1844.  
  1845. # Protocol "TCPIP" is for Novell's Lan WorkPlace for DOS, not Kermit
  1846. Protocol TCPIP
  1847.     ip_address    129.123.1.99
  1848.     ip_router    129.123.1.254
  1849.     ip_netmask    255.255.255.0
  1850.     tcp_sockets    8
  1851.     udp_sockets    8
  1852.     raw_sockets    1
  1853.     nb_sessions    4
  1854.     nb_commands    8
  1855.     nb_adapter    0
  1856.     nb_domain    usu.edu
  1857.  
  1858. Link Driver SLIP_PPP
  1859.     DIRECT    YES
  1860.     BAUD     9600
  1861.     OPEN    ACTIVE
  1862.     PCOMP    YES
  1863.     ACCOMP    YES
  1864.     PORT    3F8
  1865.     INT    4
  1866.     FRAME    SLIP
  1867.     Protocol    IP    0800    SLIP
  1868.  
  1869. MAKING NOVELL SLIP_PPP ODI CONNECTIONS
  1870.  
  1871. Novell's SLIP_PPP ODI driver is a combined serial port SLIP and PPP module
  1872. which is part of the Lan WorkPlace for DOS (LWP) product.  Kermit requires
  1873. the line:
  1874.  
  1875.     Protocol    IP    0800    SLIP
  1876.  
  1877. to be included with the driver.     Note that Kermit can temporarily steal the
  1878. serial port hardware from this driver to dial the telephone and log into a
  1879. host; SLIP/PPP communications should resume normally after Kermit is set to
  1880. the TCP/IP pathway.  Here is a STARTODI.BAT and NET.CFG example with SLIP_PPP
  1881. carrying the TCP/IP traffic.  File STARTODI.BAT:
  1882.  
  1883. @echo off
  1884. REM - Load LSL first
  1885. c:\lsl.com
  1886. REM - Then load your network board driver
  1887. c:\ne2000.com
  1888. REM - Then load the Novell SLIP_PPP driver
  1889. c:\slip_ppp.com
  1890. REM - Then the regular Novell IPX driver and network shell, for example:
  1891. set name=olga
  1892. c:\ipxodi /d
  1893. c:\bnetx.exe ps=name-of-novell-server
  1894. @echo on
  1895.  
  1896. File NET.CFG:
  1897.  
  1898. # File NET.CFG
  1899. PB buffers=6
  1900. show dots=on
  1901. signature level=0
  1902.  
  1903. protocol KERMIT
  1904.     bind SLIP_PPP
  1905. #    bind ne2000
  1906.  
  1907. Link Support
  1908.     Buffers    7 1500
  1909.     MemPool    2048
  1910.  
  1911. Link Driver NE2000
  1912.     Port  360
  1913.     Int   5
  1914.     Frame    Ethernet_II     
  1915.     Protocol    IPX    8137    Ethernet_II     
  1916.     Protocol    IP    0800    Ethernet_II
  1917.     Protocol    ARP    0806    Ethernet_II
  1918.     Protocol    RARP    8035    Ethernet_II
  1919.  
  1920. Link Driver SLIP_PPP
  1921.     DIRECT    YES
  1922.     BAUD     9600
  1923.     OPEN    ACTIVE
  1924. #    TCPIPCOMP    VJ
  1925.     PCOMP    YES
  1926.     ACCOMP    YES
  1927.     PORT    3F8
  1928.     INT    4
  1929.     FRAME    SLIP
  1930. #    FRAME    PPP
  1931.     Protocol    IP    0800    SLIP
  1932.  
  1933. # Below is for Novell's Lan WorkPlace for DOS
  1934. Protocol TCPIP
  1935.     PATH SCRIPT    d:\lwp41\net\SCRIPT
  1936.     PATH PROFILE    d:\lwp41\net\PROFILE
  1937.     PATH LWP_CFG    d:\lwp41\net\HSTACC
  1938.     PATH TCP_CFG    d:\lwp41\net\TCP
  1939.     ip_router    129.123.100.254
  1940.     ip_netmask    255.255.255.0
  1941.     ip_address    129.123.100.5
  1942.     tcp_sockets    16
  1943.     udp_sockets    8
  1944.     raw_sockets    1
  1945. #    nb_sessions    4
  1946. #    nb_commands    8
  1947. #    nb_adapter    0
  1948. #    nb_domain    usu.edu
  1949.     Bind        slip_ppp
  1950.  
  1951. Kermit is told to bind to SLIP_PPP rather than to the active NE2000 board
  1952. because the indented minor clause Bind SLIP_PPP under the Protocol Kermit
  1953. major heading tells Kermit which MLID (board driver) to use.  Link Driver
  1954. SLIP_PPP has indented Kermit line "Protocol IP 0800 SLIP" so Kermit can use
  1955. the driver; ARP and RARP lines could have been added with no effect (no ARP on
  1956. a point-to-point link).     LWP/DOS does not need this protocol line because it
  1957. tends to generate them itself.
  1958.  
  1959. Either SLIP or PPP can be used by setting the Frame Type and using the same
  1960. frame type in the indented protocol line below it.  No NetBios support was
  1961. wanted from LWP/DOS so that section was commented out.
  1962.  
  1963. STARTODI.BAT loads SLIP_PPP but nothing is sent out immediately as there is
  1964. not yet any connection.     To make the connection, start Kermit, SET PORT COM1
  1965. (or whatever), set the desired speed and flow control (but not Xon/Xoff!),
  1966. dial the phone and log into the host or server, then start SLIP or PPP there
  1967. (Novell provides a DIALER program with SLIP_PPP which can set the port speed
  1968. and dial a phone number via rudimentary means; Kermit is much more flexible
  1969. about this).  In all this, Kermit is grabbing the serial port from SLIP_PPP,
  1970. using it, and then returning it when done.  Kermit's TELNET will find an ODI
  1971. driver, SLIP_PPP, adjust itself accordingly, and SLIP-style packets flow back
  1972. and forth.  (If Kermit doesn't find the ODI driver, tell it to SET TCP
  1973. PACKET-DRIVER ODI.)
  1974.  
  1975. ODI-TO-PACKET-DRIVER SHIMS
  1976.  
  1977. Prior to version 3.12, the only way to make TCP/IP connections over ODI with
  1978. MS-DOS Kermit was through the ODIPKT shim, which converts between the ODI
  1979. interface and the packet-driver interface.  ODIPKT is no longer necessary,
  1980. except under Windows (because there is, as yet, no equivalent of WINPKT for
  1981. ODI drivers).
  1982.  
  1983. There is an ODI to Packet Driver shim available for Token Ring cards which can
  1984. work with Kermit (and WINPKT).    The current version is still in Beta as of
  1985. this writing (May 93).    ODITRPKT is available via FTP from Oklahoma State
  1986. University host datacomm.ucc.okstate.edu as pub/oditrpkt/beta9.zip.  A copy is
  1987. also available in packet-drivers/new on watsun.cc.columbia.edu, but it might
  1988. not be as up-to-date as the one at the source.
  1989.  
  1990. Here is a NET.CFG example using ODITRPKT:
  1991.  
  1992. LINK DRIVER TOKEN
  1993.      INT 3
  1994.      FRAME TOKEN-RING
  1995.      FRAME TOKEN-RING_SNAP
  1996.      PROTOCOL IPX  E0    TOKEN-RING
  1997.      Protocol IP   0800 TOKEN-RING_SNAP
  1998.      Protocol ARP  0806 TOKEN-RING_SNAP
  1999.      Protocol RARP 8035 TOKEN-RING_SNAP
  2000.  
  2001. And here is one using Arcnet:
  2002.  
  2003. LINK DRIVER SMCARCWS
  2004.      INT 3
  2005.      PORT 300
  2006.      MEM D0000
  2007.      Frame NOVELL_RX-NET
  2008.      Protocol IPX  FA NOVELL_RX-NET
  2009.      Protocol IP   D4 NOVELL_RX-NET
  2010.      Protocol ARP  D5 NOVELL_RX-NET
  2011.      Protocol RARP D6 NOVELL_RX-NET
  2012.  
  2013. At the moment there is no Windows support for Kermit over ODI.    Instead we
  2014. recommend using shim ODIPKT or ODITRPKT over ODI, followed by WINPKT over that
  2015. to employ a Packet Driver interface into Windows.
  2016.  
  2017. TCP/IP BUGS AND LIMITATIONS
  2018.  
  2019. Domain name resolution might not work when you give a nickname instead of a
  2020. complete host name in the SET PORT TCP/IP command and Kermit transforms the
  2021. nickname into the desired complete host name by combining it with your TCP/IP
  2022. DOMAIN.  Kermit does not use a special Hosts file to relate nicknames to
  2023. complete host names.  Workarounds: use a complete hostname, an IP host number,
  2024. or set your TCP/IP DOMAIN correctly.  It should be obvious that Domain Name
  2025. Servers are specified by their IP number rather than name.
  2026.  
  2027. Version 3.13 supports multiple gateways on the local network.  Choosing the
  2028. incorrect gateway normally results in that gateway sending an ICMP Redirect
  2029. message to Kermit indicating the preferred gateway, and Kermit displays such
  2030. messages.  Version 3.12 and earlier did not implement ICMP Redirect actions.
  2031.  
  2032. For IBM mainframe linemode TELNET connections, automatic appearance of the
  2033. login banner might not work.  Type a carriage return (Enter) to get the login
  2034. banner.     Local-echo and linemode operation are negotiated automatically.
  2035.  
  2036. BOOTP requests are handled correctly within the local network, and have been
  2037. tested successfully through Novell's BOOTP forwarder NLM and through Cisco
  2038. routers with software version 8.2.7.  In the SET TCP/IP ADDRESS command, the
  2039. words BOOTP and RARP must be spelled out in full.  Version 3.11 and 3.12
  2040. support original RFC951 and 1048 BOOTP protocol, and version 3.13 adds support
  2041. for downloading of the PC's full host (domain) name as specified in RFC1395.
  2042. See MSKERM.HLP (KERMIT.HLP) for details.
  2043.  
  2044. EXIT from Kermit closes your TCP/IP session (just like HANGUP).     PUSHing or
  2045. running DOS commands from Kermit keeps it open.     In version 3.12 and later,
  2046. EXITing while a session is active causes a warning / confirmation message to
  2047. appear so you can change your mind.
  2048.  
  2049. Version 3.11 of MS-DOS Kermit uses only the TELNET port (23) for SET PORT TCP
  2050. connections.  Version 3.12 and later allow you to specify any desired port
  2051. (except 25) in the SET PORT TCP command, after the host name or address.
  2052.  
  2053. MS-DOS Kermit honors TELNET protocol negotiations, including terminal type and
  2054. ECHO/SGA.  Version 3.11 always sends "VT100" as its terminal type; later
  2055. versions send MS-DOS Kermit's active terminal type or allows the user to
  2056. create an override string with command SET TCP/IP TELNET-TERM-TYPE.
  2057.  
  2058. Not supported: FTP, TFTP, automatic setting of PC date/time from network, 3270
  2059. emulation (tn3270), etc.  There is no PING command, but MS-DOS Kermit responds
  2060. when PINGed and when probed by Traceoute.  The keyboard verb \Knethold does
  2061. nothing.  Multiple simultaneous TCP/IP sessions are supported in version 3.13;
  2062. see MSKERM.HLP (KERMIT.HLP) for details.
  2063.  
  2064. For TCP/IP connections to IBM mainframes in full screen 3270 mode, you need an
  2065. intermediate host or device to do the 3270/ASCII terminal conversion.  Typical
  2066. setup is a TCP/IP terminal server with its serial lines connected to a protocol
  2067. converter (e.g. IBM 7171), a UNIX host that has tn3270 available, or a terminal
  2068. server (like Cisco) that does 3270 terminal emulation.    To transfer files with
  2069. an IBM mainframe, you might have to tell MS-DOS Kermit to SET PARITY SPACE.
  2070.  
  2071. Version 3.12 and later support inbound connections to MS-DOS Kermit.  Inbound
  2072. TELNET connections do not copy DOS screens, etc, like Carbon Copy and PC
  2073. Anywhere and the free telnetd program of Erick Engelke; a Kermit-to-Kermit
  2074. connection is made instead.  To configure MS-DOS Kermit to be a TCP/IP server,
  2075. give the following command:
  2076.  
  2077.   SET PORT TCP * [ <port> ]
  2078.   SET SERVER LOGIN <username> [ <password> ]  ; (recommended but not required)
  2079.   SERVER
  2080.  
  2081. Use asterisk instead of an IP name or address, followed optionally by a TCP
  2082. port number (the default is 23 = TELNET), and then enter server mode.  Anybody
  2083. who TELNETs to your PC will see a brief screen message telling them to escape
  2084. back to their local Kermit prompt and issue commands from there, for example:
  2085.  
  2086.   REMOTE LOGIN <usename> <password>
  2087.   REMOTE DIRECTORY
  2088.   GET OOFA.TXT
  2089.  
  2090. Kermit's TCP/IP support cannot be used simultaneously with PC NFS because both
  2091. applications want to register use of ARP and IP with the packet driver, but
  2092. each protocol can only be assigned to one application.  This is only one
  2093. particular case of the more general rule:
  2094.  
  2095.     Only one TCP/IP based application can use a LAN adapter at once.
  2096.  
  2097. which also applies to DesqView/X and other TCP/IP products for the PC.
  2098.  
  2099. (There is a program called PKTMUX that, under some conditions, might allow
  2100. coexistence of multiple TCP/IP applications, but it is risky and not
  2101. recommended.)  To make MS-DOS Kermit work simultaneously with PC-NFS, Kermit
  2102. would have to be linked with the proprietary socket-library routines, which we
  2103. cannot do.  If you need to have NFS active simultaneously with an MS-DOS
  2104. Kermit TCP/IP connection, it is best to use a different NFS package that also
  2105. works with Kermit such as FTP Software, Novell LWP, or Beame and Whiteside.
  2106.  
  2107. The SET TCP/IP and SET PORT TCP/IP commands only return failure codes if there
  2108. is a parse error.  The connection is not opened until the first attempt to
  2109. communicate with the remote host: CONNECT, PAUSE, OUTPUT, etc.    While
  2110. connection establishment is in progress, you can't interrupt the program with
  2111. Ctrl-C.     Use IF SUCCESS / FAILURE after PAUSE 0 to check if the connection
  2112. is open, for example:
  2113.  
  2114.   DEFINE TELNET SET PORT TCP \%1 \%2, PAUSE 0, IF SUCCESS CONNECT
  2115.  
  2116. The second variable above is for the optional TCP port number in version 3.12
  2117. and later.
  2118.  
  2119. TCP/IP performance hints: Set your Kermit packet size to 500 or larger to
  2120. achieve most data sent per network packet. A convenient setting is SET 
  2121. RECEIVE PACKET 1000, SET WINDOW 4, resulting in four 1000-byte packets in a 
  2122. window.     SET FLOW NONE lets TCP/IP do the flow control and eliminates Kermit's
  2123. need to check for Xon/Xoff.  In most situations beyond the local network 
  2124. performance will be limited by the long distance lines rather than by the PC.
  2125.  
  2126. End of MSKERM.BWR / KERMIT.BWR
  2127.